package model

type MemberVipData struct {
	D []MemberVip `json:"d" cbor:"d"`
	T int64       `json:"total" cbor:"t"`
	S uint        `json:"s" cbor:"s"`
}

// 结构体定义
type MemberVip struct {
	Vip                  int     `json:"vip" db:"vip" cbor:"vip"`                                           //会员等级
	Name                 string  `json:"name" db:"name" cbor:"name"`                                        //会员等级名称
	DepositAmount        int64   `json:"deposit_amount" db:"deposit_amount" cbor:"deposit_amount"`          //对应的积分
	Flow                 int64   `json:"flow" db:"flow" cbor:"flow"`                                        //升级对应的流水
	KeepFlow             int64   `json:"keep_flow" db:"keep_flow" cbor:"keep_flow"`                         //保级对应的流水
	Amount               string  `json:"amount" db:"amount" cbor:"amount"`                                  //升级奖励金额
	FreeWithdrawNum      int     `json:"free_withdraw_num" db:"free_withdraw_num" cbor:"free_withdraw_num"` //免费提款次数
	WithdrawLimit        int     `json:"withdraw_limit" db:"withdraw_limit" cbor:"withdraw_limit"`          //提款限额
	RebateRate           string  `json:"rebate_rate" db:"rebate_rate" cbor:"rebate_rate"`                   //返水比例
	Props                int     `json:"props" db:"props" cbor:"props"`                                     //道具
	UpdatedAt            int64   `json:"updated_at" db:"updated_at" cbor:"updated_at"`                      //更新时间
	CreatedAt            int64   `json:"created_at" db:"created_at" cbor:"created_at"`                      //创建时间
	WeekAward            float64 `json:"week_award" db:"week_award"`                                        //周奖励金额
	MonthAward           float64 `json:"month_award" db:"month_award"`                                      //月奖励金额
	WithdrawRate         float64 `json:"withdraw_rate" db:"withdraw_rate"`                                  //提现手续费
	WithdrawSingleLimit  int     `json:"withdraw_single_limit" db:"withdraw_single_limit"`                  //提现单笔限额
	ChargeExtraAwardRate float64 `json:"charge_extra_award_rate" db:"charge_extra_award_rate"`              //每笔充值赠送
}

type PromoSignConfigData struct {
	D []PromoSignConfig `json:"d" cbor:"d"`
	T int64             `json:"total" cbor:"t"`
	S uint              `json:"s" cbor:"s"`
}

type MemberListParam struct {
	Uid                  string `json:"uid"`      //玩家ID
	Username             string `json:"username"` //玩家账号
	Phone                string `json:"phone"`    //玩家账号
	Page                 int    `json:"page"`
	PageSize             int    `json:"page_size"`
	OderBY               string `json:"order_by"`
	OderType             string `json:"order_type"`
	OperatorId           string `json:"operator_id"`            //归属渠道ID
	BusinessId           string `json:"business_id"`            //归属业务员ID
	OperatorName         string `json:"operator_name"`          //归属渠道名称
	BusinessName         string `json:"business_name"`          //归属业务员名称
	ParentId             string `json:"parent_id"`              //
	RegStartTime         string `json:"reg_start_time"`         // 注册开始时间
	RegEndTime           string `json:"reg_end_time"`           // 注册结束时间
	RechargeMin          string `json:"recharge_min"`           // 充值最小
	RechargeMax          string `json:"recharge_max"`           // 充值最大
	WithdrawMin          string `json:"withdraw_min"`           // 提现最小
	WithdrawMax          string `json:"withdraw_max"`           // 提现最大
	RegIp                string `json:"reg_ip"`                 // 注册IP
	RechargeHiddenSwitch string `json:"recharge_hidden_switch"` // 注册IP
	ExportExcel          int    `json:"export_excel"`
	Depth                int    `json:"depth"`
	Prefix               string `json:"prefix"`
	IsBloger             int    `json:"is_bloger"`
}

type PromoSignConfig struct {
	Vip             int    `json:"vip" cbor:"vip" db:"vip"`                                           //会员等级
	Sign1Amount     string `json:"sign1_amount" cbor:"sign1_amount" db:"sign1_amount"`                //第一天签到彩金金额
	Sign2Amount     string `json:"sign2_amount" cbor:"sign2_amount" db:"sign2_amount"`                //第二天签到彩金金额
	Sign3Amount     string `json:"sign3_amount" cbor:"sign3_amount" db:"sign3_amount"`                //第三天签到彩金金额
	Sign4Amount     string `json:"sign4_amount" cbor:"sign4_amount" db:"sign4_amount"`                //第四天签到彩金金额
	Sign5Amount     string `json:"sign5_amount" cbor:"sign5_amount" db:"sign5_amount"`                //第五天签到彩金金额
	Sign6Amount     string `json:"sign6_amount" cbor:"sign6_amount" db:"sign6_amount"`                //第六天签到彩金金额
	Sign7Amount     string `json:"sign7_amount" cbor:"sign7_amount" db:"sign7_amount"`                //第七天签到彩金金额
	SignWeekAmount  string `json:"sign_week_amount" cbor:"sign_week_amount" db:"sign_week_amount"`    //周签到彩金金额
	SignMonthAmount string `json:"sign_month_amount" cbor:"sign_month_amount" db:"sign_month_amount"` //月签到彩金金额
}

type PromoSignRecordData struct {
	D []PromoSignRecord `json:"d" cbor:"d"`
	T int64             `json:"total" cbor:"t"`
	S uint              `json:"s" cbor:"s"`
}

type PromoSignRecord struct {
	UID       string `json:"uid" cbor:"uid" db:"uid"`
	Username  string `json:"username" cbor:"username" db:"username"`          //会员名
	Vip       int    `json:"vip" cbor:"vip" db:"vip"`                         //签到时的会员等级
	SignWeek1 string `json:"sign_week_1" cbor:"sign_week_1" db:"sign_week_1"` //周第一天签到
	SignWeek2 string `json:"sign_week_2" cbor:"sign_week_2" db:"sign_week_2"` //周第二天签到
	SignWeek3 string `json:"sign_week_3" cbor:"sign_week_3" db:"sign_week_3"` //周第三天签到
	SignWeek4 string `json:"sign_week_4" cbor:"sign_week_4" db:"sign_week_4"` //周第四天签到
	SignWeek5 string `json:"sign_week_5" cbor:"sign_week_5" db:"sign_week_5"` //周第五天签到
	SignWeek6 string `json:"sign_week_6" cbor:"sign_week_6" db:"sign_week_6"` //周第六天签到
	SignWeek7 string `json:"sign_week_7" cbor:"sign_week_7" db:"sign_week_7"` //周第七天签到
	Sign1     string `json:"sign1" cbor:"sign1" db:"sign1"`                   //第一天签到
	Sign2     string `json:"sign2" cbor:"sign2" db:"sign2"`                   //第二天签到
	Sign3     string `json:"sign3" cbor:"sign3" db:"sign3"`                   //第三天签到
	Sign4     string `json:"sign4" cbor:"sign4" db:"sign4"`                   //第四天签到
	Sign5     string `json:"sign5" cbor:"sign5" db:"sign5"`                   //第五天签到
	Sign6     string `json:"sign6" cbor:"sign6" db:"sign6"`                   //第六天签到
	Sign7     string `json:"sign7" cbor:"sign7" db:"sign7"`                   //第七天签到
	Sign8     string `json:"sign8" cbor:"sign8" db:"sign8"`                   //第八天签到
	Sign9     string `json:"sign9" cbor:"sign9" db:"sign9"`                   //第九天签到
	Sign10    string `json:"sign10" cbor:"sign10" db:"sign10"`                //第十天签到
	Sign11    string `json:"sign11" cbor:"sign11" db:"sign11"`                //第十一天签到
	Sign12    string `json:"sign12" cbor:"sign12" db:"sign12"`                //第十二天签到
	Sign13    string `json:"sign13" cbor:"sign13" db:"sign13"`                //第十三天签到
	Sign14    string `json:"sign14" cbor:"sign14" db:"sign14"`                //第十四天签到
	Sign15    string `json:"sign15" cbor:"sign15" db:"sign15"`                //第十五天签到
	Sign16    string `json:"sign16" cbor:"sign16" db:"sign16"`                //第十六天签到
	Sign17    string `json:"sign17" cbor:"sign17" db:"sign17"`                //第十七天签到
	Sign18    string `json:"sign18" cbor:"sign18" db:"sign18"`                //第十八天签到
	Sign19    string `json:"sign19" cbor:"sign19" db:"sign19"`                //第十九天签到
	Sign20    string `json:"sign20" cbor:"sign20" db:"sign20"`                //第二十天签到
	Sign21    string `json:"sign21" cbor:"sign21" db:"sign21"`                //第二十一天签到
	Sign22    string `json:"sign22" cbor:"sign22" db:"sign22"`                //第二十二天签到
	Sign23    string `json:"sign23" cbor:"sign23" db:"sign23"`                //第二十三天签到
	Sign24    string `json:"sign24" cbor:"sign24" db:"sign24"`                //第二十四天签到
	Sign25    string `json:"sign25" cbor:"sign25" db:"sign25"`                //第二十五天签到
	Sign26    string `json:"sign26" cbor:"sign26" db:"sign26"`                //第二十六天签到
	Sign27    string `json:"sign27" cbor:"sign27" db:"sign27"`                //第二十七天签到
	Sign28    string `json:"sign28" cbor:"sign28" db:"sign28"`                //第二十八天签到
	Sign29    string `json:"sign29" cbor:"sign29" db:"sign29"`                //第二十九天签到
	Sign30    string `json:"sign30" cbor:"sign30" db:"sign30"`                //第三十天签到
	LastSign  string `json:"last_sign" cbor:"last_sign" db:"last_sign"`       //最后一次签到时间yyyy-mm-dd
}

type PromoSignRewardRecordData struct {
	D []PromoSignRewardRecord `json:"d" cbor:"d"`
	T int64                   `json:"total" cbor:"t"`
	S uint                    `json:"s" cbor:"s"`
}

type PromoSignRewardRecord struct {
	ID        string `json:"id" db:"id" cbor:"id"`                         //id
	UID       string `json:"uid" db:"uid" cbor:"uid"`                      //uid
	Username  string `json:"username" db:"username" cbor:"username"`       //会员名
	Vip       int    `json:"vip" db:"vip" cbor:"vip"`                      //vip
	Day       int    `json:"day" db:"day" cbor:"day"`                      //第几天
	MonthDay  int    `json:"month_day" db:"month_day" cbor:"month_day"`    //月签到第几天
	Amount    string `json:"amount" db:"amount" cbor:"amount"`             //奖金金额
	CreatedAt int64  `json:"created_at" db:"created_at" cbor:"created_at"` //记录时间
}

type PromoTreasureConfigData struct {
	D []PromoTreasureConfig `json:"d" cbor:"d"`
	T int64                 `json:"total" cbor:"t"`
	S uint                  `json:"s" cbor:"s"`
}

type PromoTreasureConfig struct {
	ID          string `json:"id" cbor:"id" db:"id"`
	InviteNum   uint32 `json:"invite_num" cbor:"invite_num" db:"invite_num"`       //邀请人数
	Amount      string `json:"amount" cbor:"amount" db:"amount"`                   //宝箱金额
	TotalAmount string `json:"total_amount" cbor:"total_amount" db:"total_amount"` //累计宝箱金额
}

type PromoTreasureRecordData struct {
	D []PromoTreasureRecord `json:"d" cbor:"d"`
	T int64                 `json:"total" cbor:"t"`
	S uint                  `json:"s" cbor:"s"`
}

type PromoTreasureRecord struct {
	ID        string `json:"id" cbor:"id" db:"id"`
	UID       string `json:"uid" cbor:"uid" db:"uid"`
	Username  string `json:"username" cbor:"username" db:"username"`       //会员名
	InviteNum uint32 `json:"invite_num" cbor:"invite_num" db:"invite_num"` //邀请人数
	Amount    string `json:"amount" cbor:"amount" db:"amount"`             //宝箱金额
}

type MemberBalance struct {
	UID        string `json:"-" cbor:"-" db:"uid"`
	Brl        string `json:"brl" cbor:"brl" db:"brl"`                         //巴西余额
	LockAmount string `json:"lock_amount" cbor:"lock_amount" db:"lock_amount"` //锁定余额
}

// 帐变类型
type TransType struct {
	ID     string `json:"id" cbor:"id" db:"id"`
	Name   string `json:"name" cbor:"name" db:"name"`          //帐变中文名
	EnName string `json:"en_name" cbor:"en_name" db:"en_name"` //帐变英文名
}

// 游戏列表返回数据结构
type GameData struct {
	D []Game_t `json:"d" cbor:"d"`
	T int64    `json:"total" cbor:"t"`
	S uint     `json:"s" cbor:"s"`
}

type GameData_Pid struct {
	D []Game_item `json:"d" cbor:"d"`
	T int64       `json:"total" cbor:"t"`
	S uint        `json:"s" cbor:"s"`
}

// 数据库 游戏字段
type Game_t struct {
	ID         string   `json:"id" db:"id" cbor:"id"`
	PlatformID string   `json:"platform_id" db:"platform_id" cbor:"platform_id"` //场馆ID
	Name       string   `json:"name" db:"name" cbor:"name"`                      //游戏名称
	EnName     string   `json:"en_name" db:"en_name" cbor:"en_name"`             //英文名称
	BrAlias    string   `json:"br_alias" db:"br_alias" cbor:"br_alias"`          //巴西别名
	ClientType string   `json:"client_type" db:"client_type" cbor:"client_type"` //0:all 1:web 2:h5 4:app 此处值为支持端的数值之和
	GameType   int      `json:"game_type" db:"game_type" cbor:"game_type"`       //游戏类型:1=真人,2=捕鱼,3=电子,4=体育
	GameID     string   `json:"game_id" db:"game_id" cbor:"game_id"`             //游戏ID
	Img        string   `json:"img" db:"img" cbor:"img"`                         //手机图片
	Online     int      `json:"online" db:"online" cbor:"online"`                //0 下线 1上线
	IsHot      int      `json:"is_hot" db:"is_hot" cbor:"is_hot"`                //0 正常 1热门
	IsFav      int      `json:"is_fav" db:"is_fav" cbor:"is_fav"`                //0 正常 1热门
	IsNew      int      `json:"is_new" db:"is_new" cbor:"is_new"`                //是否最新:0=否,1=是
	Sorting    int      `json:"sorting" db:"sorting" cbor:"sorting"`             //排序
	CreatedAt  int64    `json:"created_at" db:"created_at" cbor:"created_at"`    //添加时间
	TagId      string   `db:"tag_id" json:"tag_id" cbor:"tag_id"`                //标签集合
	TagIds     []string `json:"tag_ids" cbor:"tag_ids"`
	HotSort    int      `json:"hot_sort" db:"hot_sort" cbor:"hot_sort"` //0 正常 1热门
	NewSort    int      `json:"new_sort" db:"new_sort" cbor:"new_sort"` //0 正常 1热门
	FavSort    int      `json:"fav_sort" db:"fav_sort" cbor:"fav_sort"` //0 正常 1热门
	ToFake     int      `json:"to_fake" db:"to_fake" cbor:"to_fake"`
}

type Game_item struct {
	ID         string   `json:"id" db:"id" cbor:"id"`
	Pid        string   `json:"pid,omitempty" db:"pid" cbor:"pid"`               //父节点ID
	PlatformID string   `json:"platform_id" db:"platform_id" cbor:"platform_id"` //场馆ID
	Name       string   `json:"name" db:"name" cbor:"name"`                      //游戏名称
	EnName     string   `json:"en_name" db:"en_name" cbor:"en_name"`             //英文名称
	BrAlias    string   `json:"br_alias" db:"br_alias" cbor:"br_alias"`          //巴西别名
	ClientType string   `json:"client_type" db:"client_type" cbor:"client_type"` //0:all 1:web 2:h5 4:app 此处值为支持端的数值之和
	GameType   int      `json:"game_type" db:"game_type" cbor:"game_type"`       //游戏类型:1=真人,2=捕鱼,3=电子,4=体育
	GameID     string   `json:"game_id" db:"game_id" cbor:"game_id"`             //游戏ID
	Img        string   `json:"img" db:"img" cbor:"img"`                         //手机图片
	Online     int      `json:"online" db:"online" cbor:"online"`                //0 下线 1上线
	Maintained int      `json:"maintained" db:"maintained" cbor:"maintained"`    //0 下线 1上线
	IsHot      int      `json:"is_hot" db:"is_hot" cbor:"is_hot"`                //0 正常 1热门
	IsFav      int      `json:"is_fav" db:"is_fav" cbor:"is_fav"`                //0 正常 1热门
	IsNew      int      `json:"is_new" db:"is_new" cbor:"is_new"`                //是否最新:0=否,1=是
	Sorting    int      `json:"sorting" db:"sorting" cbor:"sorting"`             //排序
	CreatedAt  int64    `json:"created_at" db:"created_at" cbor:"created_at"`    //添加时间
	TagId      string   `db:"tag_id" json:"tag_id" cbor:"tag_id"`                //标签集合
	TagIds     []string `json:"tag_ids" cbor:"tag_ids"`
	HotSort    int      `json:"hot_sort" db:"hot_sort" cbor:"hot_sort"` //0 正常 1热门
	NewSort    int      `json:"new_sort" db:"new_sort" cbor:"new_sort"` //0 正常 1热门
	FavSort    int      `json:"fav_sort" db:"fav_sort" cbor:"fav_sort"` //0 正常 1热门
	ToFake     int      `json:"to_fake" db:"to_fake" cbor:"to_fake"`
}

type PlatformData struct {
	T int64      `json:"total" cbor:"t"`
	D []Platform `json:"d" cbor:"d"`
	S int        `json:"s" cbor:"s"`
}

type Platform struct {
	ID          string `db:"id" json:"id" cbor:"id"`
	Pid         string `db:"pid" json:"pid" cbor:"pid"`
	Name        string `db:"name" json:"name" cbor:"name"`
	GameType    int    `db:"game_type" json:"game_type" cbor:"game_type"`
	State       int    `db:"state" json:"state" cbor:"state"`
	Maintained  int    `db:"maintained" json:"maintained" cbor:"maintained"`
	Seq         int    `db:"seq" json:"seq" cbor:"seq"`
	Logo        string `db:"logo" json:"logo" cbor:"logo"`
	CreatedAt   int32  `db:"created_at" json:"created_at" cbor:"created_at"`
	UpdatedAt   int32  `db:"updated_at" json:"updated_at" cbor:"updated_at"`
	UpdatedUID  string `db:"updated_uid" json:"updated_uid" cbor:"updated_uid"`
	UpdatedName string `db:"updated_name" json:"updated_name" cbor:"updated_name"`
}

type platJson struct {
	ID         string `db:"id" json:"id" cbor:"id"`
	Pid        string `db:"pid" json:"pid" cbor:"pid"`
	Name       string `db:"name" json:"name" cbor:"name"`
	GameType   int    `db:"game_type" json:"game_type" cbor:"game_type"`
	State      int    `db:"state" json:"state" cbor:"state"`
	Maintained int    `db:"maintained" json:"maintained" cbor:"maintained"`
	Seq        int    `db:"seq" json:"seq" cbor:"seq"`
	Logo       string `db:"logo" json:"logo" cbor:"logo"`
}

type PromoDepositConfigData struct {
	D []PromoDepositConfig `json:"d" cbor:"d"`
	T int64                `json:"total" cbor:"t"`
	S uint                 `json:"s" cbor:"s"`
}

type PromoDepositConfig struct {
	Id        string  `json:"id" cbor:"id" db:"id"`
	Name      string  `json:"name" cbor:"name" db:"name"`                   //配置名称
	Bonus     float64 `json:"bonus" cbor:"bonus" db:"bonus"`                //奖金比例
	Flow      float64 `json:"flow" cbor:"flow" db:"flow"`                   //流水倍数
	MaxAmount float64 `json:"max_amount" cbor:"max_amount" db:"max_amount"` //最大金额
	MinAmount float64 `json:"min_amount" cbor:"min_amount" db:"min_amount"` //最小金额
	Ty        int     `json:"ty" cbor:"ty" db:"ty"`                         //1首存2次存
	Sort      int     `json:"sort" cbor:"sort" db:"sort"`
}

// paymentDepositResp 存款
type paymentDepositResp struct {
	Addr    string `json:"addr" cbor:"addr"`         // 三方返回的充值地址
	QrCode  string `json:"qr_code" cbor:"qr_code"`   // 充值二维码地址
	OrderID string `json:"order_id" cbor:"order_id"` //我方订单号
	Oid     string `json:"oid" cbor:"oid"`           //三方的订单号
}

// paymentWithdrawResp 提款
type paymentWithdrawResp struct {
	OrderID string `json:"order_id" cbor:"order_id"` //我方订单号
	Oid     string `json:"oid" cbor:"oid"`           //三方的订单号
}

type MemBalance struct {
	Brl               float64 `json:"brl" db:"brl" cbor:"brl"`                                                 //全部余额
	BrlAmount         float64 `json:"brl_amount" db:"-" cbor:"brl_amount"`                                     //可提现余额
	UnlockAmount      float64 `json:"unlock_amount" db:"unlock_amount" cbor:"unlock_amount"`                   //解锁余额
	LockAmount        float64 `json:"lock_amount" db:"lock_amount" cbor:"lock_amount"`                         //提现中余额
	AgencyAmount      float64 `json:"agency_amount" db:"agency_amount" cbor:"agency_amount"`                   //推广账户余额
	DepositAmount     float64 `json:"deposit_amount" db:"-" cbor:"deposit_amount"`                             //存款账户余额
	DepositBalance    float64 `json:"deposit_balance" db:"-" cbor:"deposit_balance"`                           //存款可提现余额
	DepositLockAmount float64 `json:"deposit_lock_amount" db:"deposit_lock_amount" cbor:"deposit_lock_amount"` //存款不可提现余额
	AgencyBalance     float64 `json:"agency_balance" db:"-" cbor:"agency_balance"`                             //推广账户可提现余额
	AgencyLockAmount  float64 `json:"agency_lock_amount" db:"agency_lock_amount" cbor:"agency_lock_amount"`    //推广账户不可提现余额
}
type MemberTransaction struct {
	BillNo       string  `db:"bill_no" json:"bill_no" cbor:"bill_no"`                   //转账|充值|提现ID
	UID          string  `db:"uid" json:"uid" cbor:"uid"`                               //用户ID
	CashType     int     `db:"cash_type" json:"cash_type" cbor:"cash_type"`             //0:转入1:转出2:转入失败补回3:转出失败扣除4:存款5:提现
	Amount       float64 `db:"amount" json:"amount" cbor:"amount"`                      //用户填写的转换金额
	BeforeAmount float64 `db:"before_amount" json:"before_amount" cbor:"before_amount"` //账变前的金额
	AfterAmount  float64 `db:"after_amount" json:"after_amount" cbor:"after_amount"`    //账变后的金额
	CreatedAt    int64   `db:"created_at" json:"created_at" cbor:"created_at"`          //
	PlatformID   string  `db:"platform_id" json:"platform_id" cbor:"platform_id"`       //场馆id
	GameTax      float64 `db:"game_tax" json:"game_tax" cbor:"game_tax"`                //1正式 2测试 3代理
}

type TblMemberBalance struct {
	Prefix            string  `json:"prefix" db:"prefix" cbor:"prefix"`
	Uid               string  `json:"uid" db:"uid" cbor:"uid"`
	Brl               float64 `json:"brl" db:"brl" cbor:"brl"`                                                 //全部余额
	BrlAmount         float64 `json:"brl_amount" db:"-" cbor:"brl_amount"`                                     //可提现余额
	UnlockAmount      float64 `json:"unlock_amount" db:"unlock_amount" cbor:"unlock_amount"`                   //解锁余额
	LockAmount        float64 `json:"lock_amount" db:"lock_amount" cbor:"lock_amount"`                         //提现中余额
	AgencyAmount      float64 `json:"agency_amount" db:"agency_amount" cbor:"agency_amount"`                   //推广账户余额
	DepositAmount     float64 `json:"deposit_amount" db:"-" cbor:"deposit_amount"`                             //存款账户余额
	DepositBalance    float64 `json:"deposit_balance" db:"-" cbor:"deposit_balance"`                           //存款可提现余额
	DepositLockAmount float64 `json:"deposit_lock_amount" db:"deposit_lock_amount" cbor:"deposit_lock_amount"` //存款不可提现余额
	AgencyBalance     float64 `json:"agency_balance" db:"-" cbor:"agency_balance"`                             //推广账户可提现余额
	AgencyLockAmount  float64 `json:"agency_lock_amount" db:"agency_lock_amount" cbor:"agency_lock_amount"`    //推广账户不可提现余额
}

type tblPromoInviteRecord struct {
	Id             string  `db:"id" cbor:"id" json:"id"`
	Uid            string  `db:"uid" cbor:"uid" json:"uid"`
	Username       string  `db:"username" cbor:"username" json:"username"`
	Lvl            int     `db:"lvl" cbor:"lvl" json:"lvl"`                                        //123 一级二级三级
	ChildUid       string  `db:"child_uid" cbor:"child_uid" json:"child_uid"`                      //下级的uid
	ChildUsername  string  `db:"child_username" cbor:"child_username" json:"child_username"`       //下级的账号
	FirstDepositAt int     `db:"first_deposit_at" cbor:"first_deposit_at" json:"first_deposit_at"` //首存时间
	DepositAmount  float64 `db:"deposit_amount" cbor:"deposit_amount" json:"deposit_amount"`       //存款金额
	BonusAmount    float64 `db:"bonus_amount" cbor:"bonus_amount" json:"bonus_amount"`             //奖金
	CreatedAt      uint32  `db:"created_at" cbor:"created_at" json:"created_at"`                   //注册时间
	State          int     `db:"state" cbor:"state" json:"state"`                                  //1注册未充值2充值未结算3已结算4过期
}

type TblBonusConfig struct {
	Id                string  `db:"id" cbor:"id" json:"id"`
	Name              string  `db:"name" cbor:"name" json:"name"`
	Code              string  `db:"code" cbor:"code" json:"code"`
	RechargeAmountLv1 float64 `db:"recharge_amount_lv1" cbor:"recharge_amount_lv1" json:"recharge_amount_lv1"`
	RateAmountLv1     float64 `db:"rate_amount_lv1" cbor:"rate_amount_lv1" json:"rate_amount_lv1"`
	RechargeAmountLv2 float64 `db:"recharge_amount_lv2" cbor:"recharge_amount_lv2" json:"recharge_amount_lv2"`
	RateAmountLv2     float64 `db:"rate_amount_lv2" cbor:"rate_amount_lv2" json:"rate_amount_lv2"`
	RechargeAmountLv3 float64 `db:"recharge_amount_lv3" cbor:"recharge_amount_lv3" json:"recharge_amount_lv3"`
	RateAmountLv3     float64 `db:"rate_amount_lv3" cbor:"rate_amount_lv3" json:"rate_amount_lv3"`
	LvlOneRebate      float64 `db:"lvl_one_rebate" cbor:"lvl_one_rebate" json:"lvl_one_rebate"`
	LvlTwoRebate      float64 `db:"lvl_two_rebate" cbor:"lvl_two_rebate" json:"lvl_two_rebate"`
	LvlThreeRebate    float64 `db:"lvl_three_rebate" cbor:"lvl_three_rebate" json:"lvl_three_rebate"`
}

type BonusConfigData struct {
	D []TblBonusConfig `cbor:"d" json:"d"`
	T int              `cbor:"t" json:"total"`
	S uint             `cbor:"s" json:"s"`
}

type TblOperatorInfo struct {
	Id                 string  `json:"id" db:"id"`
	OperatorName       string  `json:"operator_name" db:"operator_name"`               // 渠道名称
	Password           string  `json:"password" db:"password"`                         // 密码
	ProxyExtendLink    string  `json:"proxy_extend_link" db:"proxy_extend_link"`       // 全民代理推广链接
	WithdrawRemain     float64 `json:"withdraw_remain" db:"withdraw_remain"`           // 渠道额度
	RechargeFee        float64 `json:"recharge_fee" db:"recharge_fee"`                 // 充值手续费比例
	WithdrawFee        float64 `json:"withdraw_fee" db:"withdraw_fee"`                 // 提现手续费比例
	ApiFee             string  `json:"api_fee" db:"api_fee"`                           // api费用
	GameFeeRate        float64 `json:"game_fee_rate" db:"game_fee_rate"`               // api费用
	SingleUrl          string  `json:"single_url" db:"single_url"`                     // 独立域名
	YoutubeShareLink   string  `json:"youtube_share_link" db:"youtube_share_link"`     // YouTube分享链接
	TwitterShareLink   string  `json:"twitter_share_link" db:"twitter_share_link"`     // Twitter分享链接
	TelegramShareLink  string  `json:"telegram_share_link" db:"telegram_share_link"`   // Telegram分享链接
	InstagramShareLink string  `json:"instagram_share_link" db:"instagram_share_link"` // Instagram分享链接
	CreatedAt          int64   `json:"created_at" db:"created_at"`                     // 创建时间
	CreatedUid         string  `json:"created_uid" db:"created_uid"`                   // 创建人uid
	CreatedName        string  `json:"created_name" db:"created_name"`                 // 创建人名
	UpdatedAt          int64   `json:"updated_at" db:"updated_at"`                     // 修改时间
	UpdatedUid         string  `json:"updated_uid" db:"updated_uid"`                   // 修改人uid
	UpdatedName        string  `json:"updated_name" db:"updated_name"`                 // 修改人名
	State              string  `json:"state" db:"state"`                               // 0 未启用 1 启用
	ExtendOperator     string  `json:"extend_operator" db:"extend_operator"`           // 关联渠道
	WithdrawButton     string  `json:"withdraw_button" db:"withdraw_button"`           // 提现权限
	IntoFakepgRate     float64 `json:"into_fakepg_rate" db:"into_fakepg_rate"`         // 进入假pg概率
	AccountSecurity    int     `json:"account_security" db:"account_security"`         // 账号安全
	InitRtp            float64 `json:"init_rtp" db:"init_rtp"`                         // 初始RTP
	AdjustRtp          float64 `json:"adjust_rtp" db:"adjust_rtp"`                     // 调控RTP
	AdjustMoneyMul     float64 `json:"adjust_money_mul" db:"adjust_money_mul"`         // 调控金额倍数
	Seamo              string  `json:"seamo" db:"seamo"`

	//pp调控
	IntoFakeppRate       int     `json:"into_fakepp_rate" db:"into_fakepp_rate"`               // 进入pp概率
	InitFakeppRtp        float64 `json:"init_fakepp_rtp" db:"init_fakepp_rtp"`                 // 初始ppRTP
	AdjustFakeppRtp      float64 `json:"adjust_fakepp_rtp" db:"adjust_fakepp_rtp"`             // 调控ppRTP
	AdjustFakeppMoneyMul float64 `json:"adjust_fakepp_money_mul" db:"adjust_fakepp_money_mul"` // 调控pp金额倍数

}

type TblOperatorInfoNoApiFee struct {
	Id                 string  `json:"id" db:"id"`
	OperatorName       string  `json:"operator_name" db:"operator_name"`               // 渠道名称
	Password           string  `json:"password" db:"password"`                         // 密码
	ProxyExtendLink    string  `json:"proxy_extend_link" db:"proxy_extend_link"`       // 全民代理推广链接
	WithdrawRemain     float64 `json:"withdraw_remain" db:"withdraw_remain"`           // 渠道额度
	RechargeFee        float64 `json:"recharge_fee" db:"recharge_fee"`                 // 充值手续费比例
	WithdrawFee        float64 `json:"withdraw_fee" db:"withdraw_fee"`                 // 提现手续费比例
	SingleUrl          string  `json:"single_url" db:"single_url"`                     // 独立域名
	YoutubeShareLink   string  `json:"youtube_share_link" db:"youtube_share_link"`     // YouTube分享链接
	TwitterShareLink   string  `json:"twitter_share_link" db:"twitter_share_link"`     // Twitter分享链接
	TelegramShareLink  string  `json:"telegram_share_link" db:"telegram_share_link"`   // Telegram分享链接
	InstagramShareLink string  `json:"instagram_share_link" db:"instagram_share_link"` // Instagram分享链接
	CreatedAt          int64   `json:"created_at" db:"created_at"`                     // 创建时间
	CreatedUid         string  `json:"created_uid" db:"created_uid"`                   // 创建人uid
	CreatedName        string  `json:"created_name" db:"created_name"`                 // 创建人名
	UpdatedAt          int64   `json:"updated_at" db:"updated_at"`                     // 修改时间
	UpdatedUid         string  `json:"updated_uid" db:"updated_uid"`                   // 修改人uid
	UpdatedName        string  `json:"updated_name" db:"updated_name"`                 // 修改人名
	State              string  `json:"state" db:"state"`                               // 0 未启用 1 启用
	ExtendOperator     string  `json:"extend_operator" db:"extend_operator"`           // 关联渠道
	WithdrawButton     string  `json:"withdraw_button" db:"withdraw_button"`           // 提现权限
	IntoFakepgRate     float64 `json:"into_fakepg_rate" db:"into_fakepg_rate"`         // 进入假pg概率
	AccountSecurity    int     `json:"account_security" db:"account_security"`         // 账号安全
	InitRtp            float64 `json:"init_rtp" db:"init_rtp"`                         // 初始RTP
	AdjustRtp          float64 `json:"adjust_rtp" db:"adjust_rtp"`                     // 调控RTP
	AdjustMoneyMul     float64 `json:"adjust_money_mul" db:"adjust_money_mul"`         // 调控金额倍数
	Seamo              string  `json:"seamo" db:"seamo"`                               //

	//pp调控
	IntoFakeppRate       int     `json:"into_fakepp_rate" db:"into_fakepp_rate"`               // 进入pp概率
	InitFakeppRtp        float64 `json:"init_fakepp_rtp" db:"init_fakepp_rtp"`                 // 初始ppRTP
	AdjustFakeppRtp      float64 `json:"adjust_fakepp_rtp" db:"adjust_fakepp_rtp"`             // 调控ppRTP
	AdjustFakeppMoneyMul float64 `json:"adjust_fakepp_money_mul" db:"adjust_fakepp_money_mul"` // 调控pp金额倍数
}

type OperatorInfoData struct {
	D []TblOperatorInfo `cbor:"d" json:"d"`
	T int               `cbor:"t" json:"total"`
	S uint              `cbor:"s" json:"s"`
}

type TblGameConfig struct {
	Id          string `db:"id" json:"id"`
	CfgType     string `db:"cfg_type"  json:"cfg_type"`
	CfgValue    string `db:"cfg_value"  json:"cfg_value"`
	Description string `db:"description" json:"description"`
	TypeId      string `db:"type_id"  json:"type_id"`
	Class       string `json:"class" db:"class"`
}

type GameConfigData struct {
	D []TblGameConfig `json:"d"`
	T int             `json:"total"`
	S uint            `json:"s"`
}

type TblBusinessInfo struct {
	Id           string `json:"id" db:"id"`
	AccountName  string `json:"account_name" db:"account_name"`   // 业务员名称
	LoginAccount string `json:"login_account" db:"login_account"` // 登录账号
	Password     string `json:"password" db:"password"`           // 密码
	InviteUrl    string `json:"invite_url" db:"invite_url"`       // 邀请链接
	OperatorId   string `json:"operator_id" db:"operator_id"`     // 渠道id
	CreatedAt    int64  `json:"created_at" db:"created_at"`       // 创建时间
	UpdatedAt    int64  `json:"updated_at" db:"updated_at"`       // 修改时间
	Type         string `json:"type" db:"type"`                   // 业务员级别
	ParentId     string `json:"parent_id" db:"parent_id"`         // 上级业务员id
	ParentName   string `json:"parent_name" db:"parent_name"`     // 上级业务员名称
	State        string `json:"state" db:"state"`                 //

	RechargeFee float64 `json:"recharge_fee" db:"recharge_fee"`   // 充值手续费比例
	WithdrawFee float64 `json:"withdraw_fee" db:"withdraw_fee"`   // 提现手续费比例
	ApiFee      string  `json:"api_fee" db:"api_fee"`             // api费用
	GameFeeRate float64 `json:"game_fee_rate" db:"game_fee_rate"` // api费用

	Seamo string `json:"seamo" db:"seamo"` // 谷歌秘钥
}

type BusinessInfoData struct {
	D []TblBusinessInfo `json:"d"`
	T int               `json:"total"`
	S uint              `json:"s"`
}

// 日报表参数，通用
type ReportDailyParam struct {
	Uid        int    `json:"uid"`
	OperatorId string `json:"operator_id"` // 渠道id
	BusinessId string `json:"business_id"` // 业务员id
	StartTime  string `json:"start_time"`  // 查询开始时间
	EndTime    string `json:"end_time"`    // 查询结束时间
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
	OderBY     string `json:"order_by"`
	OderType   string `json:"order_type"`
	IsOperator int    `json:"is_operator"` //是否渠道列表
	IsBusiness int    `json:"is_business"` //是否业务员列表
}

// 玩家日报表 响应数据
type ReportUserDailyRetData struct {
	T int                           `cbor:"t" json:"total"`
	D []ReportUserDailyData         `cbor:"d" json:"d"`
	S ReportUserDailyStatisticsData `cbor:"s" json:"s"`
}

// 玩家日报表
type ReportUserDailyData struct {
	UID          int     `json:"uid" db:"uid"`
	Deposit      float64 `json:"deposit" db:"deposit"`
	FirstDeposit float64 `json:"first_deposit" db:"first_deposit"`
	Withdraw     float64 `json:"withdraw" db:"withdraw"`
	Running      float64 `json:"running" db:"running"`
	GameRound    int32   `json:"game_round" db:"game_round"`
	GameWinlost  float64 `json:"game_winlost" db:"game_winlost"`
	GameTax      float64 `json:"game_tax" db:"game_tax"` // 游戏税收
	//TurntableBonus   float64 `json:"turntable_bonus" db:"turntable_bonus"`
	ProxyInviteBonus  float64 `json:"proxy_invite_bonus" db:"proxy_invite_bonus"`
	AccuDepositBonus  float64 `json:"accu_deposit_bonus" db:"accu_deposit_bonus"`
	WeekLostReturn    float64 `json:"week_lost_return" db:"week_lost_return"`
	WeekBetReturn     float64 `json:"week_bet_return" db:"week_bet_return"`
	WeekDepositReturn float64 `json:"week_deposit_return" db:"week_deposit_return"`
	WeekCommiReturn   float64 `json:"week_commi_return" db:"week_commi_return"`
	AppDownloadBonus  float64 `json:"app_download_bonus" db:"app_download_bonus"`
	CreatedAt         string  `json:"created_at" db:"created_at"`
	Username          string  `json:"username" db:"username"`
	OperatorId        string  `json:"operator_id" db:"operator_id"`
	OperatorName      string  `json:"operator_name" db:"operator_name"`
	BusinessId        string  `json:"business_id" db:"business_id"`
	BusinessName      string  `json:"business_name" db:"business_name"`
}

// 玩家日况统计数据
type ReportUserDailyStatisticsData struct {
	Deposit     float64 `json:"deposit" db:"deposit"`
	Withdraw    float64 `json:"withdraw" db:"withdraw"`
	Running     float64 `json:"running" db:"running"`
	GameRound   int32   `json:"game_round" db:"game_round"`
	GameWinlost float64 `json:"game_winlost" db:"game_winlost"`
	GameTax     float64 `json:"game_tax" db:"game_tax"` // 游戏税收
	//TurntableBonus   float64 `json:"turntable_bonus" db:"turntable_bonus"`
	ProxyInviteBonus  float64 `json:"proxy_invite_bonus" db:"proxy_invite_bonus"`
	AccuDepositBonus  float64 `json:"accu_deposit_bonus" db:"accu_deposit_bonus"`
	WeekLostReturn    float64 `json:"week_lost_return" db:"week_lost_return"`
	WeekBetReturn     float64 `json:"week_bet_return" db:"week_bet_return"`
	WeekDepositReturn float64 `json:"week_deposit_return" db:"week_deposit_return"`
	WeekCommiReturn   float64 `json:"week_commi_return" db:"week_commi_return"`
	AppDownloadBonus  float64 `json:"app_download_bonus" db:"app_download_bonus"`
}

// 日况统计表 响应数据
type ReportDailyRetData struct {
	T int                  `cbor:"t" json:"total"`
	D []ReportDailyData    `cbor:"d" json:"d"`
	S ReportStatisticsData `cbor:"s" json:"s"`
}

// 日况统计表  定时任务
type TblReportDailyData struct {
	Id                int     `json:"id" db:"id"`
	BusinessId        string  `json:"business_id" db:"business_id"`               // 业务员id
	OperatorId        string  `json:"operator_id" db:"operator_id"`               // 渠道id
	DepositNum        float64 `json:"deposit_num" db:"deposit_num"`               // 充值人数
	Deposit           float64 `json:"deposit" db:"deposit"`                       // 充值数量
	FirstDepositNum   float64 `json:"first_deposit_num" db:"first_deposit_num"`   // 首充人数
	FirstDeposit      float64 `json:"first_deposit" db:"first_deposit"`           // 首充数量
	WithdrawNum       float64 `json:"withdraw_num" db:"withdraw_num"`             // 提现人数
	Withdraw          float64 `json:"withdraw" db:"withdraw"`                     // 提现数量
	Running           float64 `json:"running" db:"running"`                       // 流水
	GameRound         int     `json:"game_round" db:"game_round"`                 // 游戏局数
	GameTax           float64 `json:"game_tax" db:"game_tax"`                     // 游戏税收
	GameWinlost       float64 `json:"game_winlost" db:"game_winlost"`             // 游戏赢亏
	ProxyInviteBonus  float64 `json:"proxy_invite_bonus" db:"proxy_invite_bonus"` // 代理邀请奖励
	AccuDepositBonus  float64 `json:"accu_deposit_bonus" db:"accu_deposit_bonus"`
	WeekLostReturn    float64 `json:"week_lost_return" db:"week_lost_return"`
	WeekBetReturn     float64 `json:"week_bet_return" db:"week_bet_return"`
	WeekDepositReturn float64 `json:"week_deposit_return" db:"week_deposit_return"`
	WeekCommiReturn   float64 `json:"week_commi_return" db:"week_commi_return"`
	AppDownloadBonus  float64 `json:"app_download_bonus" db:"app_download_bonus"`
	CreatedAt         string  `json:"created_at" db:"created_at"`                 // 时间
	NewUser           int     `json:"new_user" db:"new_user"`                     // 新增玩家
	ActiveUser        int     `json:"active_user" db:"active_user"`               // 活跃玩家
	ValidNum          int     `json:"valid_num" db:"valid_num"`                   // 有效人数
	UpScore           float64 `json:"up_score" db:"up_score"`                     // 上分数量
	DownScore         float64 `json:"down_score" db:"down_score"`                 // 下分数量
	UndepositWithdraw float64 `json:"undeposit_withdraw" db:"undeposit_withdraw"` // 未充提款
	DailyBetReturn    float64 `json:"daily_bet_return" db:"daily_bet_return"`     // 日投注返利

	EnableFirstDepositToParent float64 `json:"enable_first_deposit_to_parent" db:"enable_first_deposit_to_parent"` //
	EnableRechargeShare        float64 `json:"enable_recharge_share" db:"enable_recharge_share"`
}

// 日况统计数据 列表
type ReportDailyData struct {
	Id              int     `json:"id" db:"id"`
	BusinessId      string  `json:"business_id" db:"business_id"`             // 业务员id
	OperatorId      string  `json:"operator_id" db:"operator_id"`             // 渠道id
	DepositNum      float64 `json:"deposit_num" db:"deposit_num"`             // 充值人数
	Deposit         float64 `json:"deposit" db:"deposit"`                     // 充值数量
	FirstDepositNum float64 `json:"first_deposit_num" db:"first_deposit_num"` // 首充人数
	FirstDeposit    float64 `json:"first_deposit" db:"first_deposit"`         // 首充数量
	WithdrawNum     float64 `json:"withdraw_num" db:"withdraw_num"`           // 提现人数
	Withdraw        float64 `json:"withdraw" db:"withdraw"`                   // 提现数量
	Running         float64 `json:"running" db:"running"`                     // 流水
	GameRound       int     `json:"game_round" db:"game_round"`               // 游戏局数
	GameTax         float64 `json:"game_tax" db:"game_tax"`                   // 游戏税收
	GameWinlost     float64 `json:"game_winlost" db:"game_winlost"`           // 游戏赢亏
	//TurntableBonus   float64 `json:"turntable_bonus" db:"turntable_bonus"`       // 转盘奖励
	ProxyInviteBonus  float64 `json:"proxy_invite_bonus" db:"proxy_invite_bonus"` // 代理邀请奖励
	AccuDepositBonus  float64 `json:"accu_deposit_bonus" db:"accu_deposit_bonus"`
	WeekLostReturn    float64 `json:"week_lost_return" db:"week_lost_return"`
	WeekBetReturn     float64 `json:"week_bet_return" db:"week_bet_return"`
	WeekDepositReturn float64 `json:"week_deposit_return" db:"week_deposit_return"`
	WeekCommiReturn   float64 `json:"week_commi_return" db:"week_commi_return"`
	AppDownloadBonus  float64 `json:"app_download_bonus" db:"app_download_bonus"`
	CreatedAt         string  `json:"created_at" db:"created_at"`                 // 时间
	OperatorName      string  `json:"operator_name" db:"operator_name"`           // 渠道账号
	BusinessName      string  `json:"business_name" db:"business_name"`           // 业务员账号
	NewUser           int     `json:"new_user" db:"new_user"`                     // 新增玩家
	ActiveUser        int     `json:"active_user" db:"active_user"`               // 活跃玩家
	ValidNum          int     `json:"valid_num" db:"valid_num"`                   // 有效人数
	UpScore           float64 `json:"up_score" db:"up_score"`                     // 上分数量
	DownScore         float64 `json:"down_score" db:"down_score"`                 // 下分数量
	GameRate          float64 `json:"game_rate" db:"game_rate"`                   // 游戏回报率
	SystemProfit      float64 `json:"system_profit" db:"system_profit"`           // 系统盈亏
	UndepositWithdraw float64 `json:"undeposit_withdraw" db:"undeposit_withdraw"` // 未充提款
	DailyBetReturn    float64 `json:"daily_bet_return" db:"daily_bet_return"`     // 日投注返利

	EnableFirstDepositToParent float64 `json:"enable_first_deposit_to_parent" db:"enable_first_deposit_to_parent"` //
	EnableRechargeShare        float64 `json:"enable_recharge_share" db:"enable_recharge_share"`
}

// 日况统计数据 总统计
type ReportStatisticsData struct {
	DepositNum      float64 `json:"deposit_num" db:"deposit_num"`             // 充值人数
	Deposit         float64 `json:"deposit" db:"deposit"`                     // 充值数量
	FirstDepositNum float64 `json:"first_deposit_num" db:"first_deposit_num"` // 首充人数
	FirstDeposit    float64 `json:"first_deposit" db:"first_deposit"`         // 首充数量
	WithdrawNum     float64 `json:"withdraw_num" db:"withdraw_num"`           // 提现人数
	Withdraw        float64 `json:"withdraw" db:"withdraw"`                   // 提现数量
	Running         float64 `json:"running" db:"running"`                     // 流水
	GameRound       int32   `json:"game_round" db:"game_round"`               // 游戏局数
	GameTax         float64 `json:"game_tax" db:"game_tax"`                   // 游戏税收
	GameWinlost     float64 `json:"game_winlost" db:"game_winlost"`           // 游戏赢亏
	//TurntableBonus   float64 `json:"turntable_bonus" db:"turntable_bonus"`       // 转盘奖励
	ProxyInviteBonus  float64 `json:"proxy_invite_bonus" db:"proxy_invite_bonus"` // 代理邀请奖励
	AccuDepositBonus  float64 `json:"accu_deposit_bonus" db:"accu_deposit_bonus"`
	WeekLostReturn    float64 `json:"week_lost_return" db:"week_lost_return"`
	WeekBetReturn     float64 `json:"week_bet_return" db:"week_bet_return"`
	WeekDepositReturn float64 `json:"week_deposit_return" db:"week_deposit_return"`
	WeekCommiReturn   float64 `json:"week_commi_return" db:"week_commi_return"`
	AppDownloadBonus  float64 `json:"app_download_bonus" db:"app_download_bonus"`
	NewUser           int     `json:"new_user" db:"new_user"`                     // 新增玩家
	ValidNum          int     `json:"valid_num" db:"valid_num"`                   // 有效人数
	UpScore           float64 `json:"up_score" db:"up_score"`                     // 上分数量
	DownScore         float64 `json:"down_score" db:"down_score"`                 // 下分数量
	GameRate          float64 `json:"game_rate" db:"game_rate"`                   // 游戏回报率
	SystemProfit      float64 `json:"system_profit" db:"system_profit"`           // 系统盈亏
	UndepositWithdraw float64 `json:"undeposit_withdraw" db:"undeposit_withdraw"` // 未充提款
	DailyBetReturn    float64 `json:"daily_bet_return" db:"daily_bet_return"`     // 日投注返利

	EnableFirstDepositToParent float64 `json:"enable_first_deposit_to_parent" db:"enable_first_deposit_to_parent"` //
	EnableRechargeShare        float64 `json:"enable_recharge_share" db:"enable_recharge_share"`
}

// 测试号接收参数
type MemberTestParam struct {
	Uid        int    `json:"uid"`
	StartTime  string `json:"start_time"`  // 查询开始时间
	EndTime    string `json:"end_time"`    // 查询结束时间
	OperatorId string `json:"operator_id"` // 渠道id
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
}

// 游戏盈亏统计表 响应数据
type ReportGameDailyRetData struct {
	T int                      `cbor:"t" json:"total"`
	D []ReportGameDailyData    `cbor:"d" json:"d"`
	S ReportGameStatisticsData `cbor:"s" json:"s"`
}

// 游戏盈亏结算参数
type GameDailyParam struct {
	PlatformId int    `json:"platform_id"`
	OperatorId string `json:"operator_id"` // 渠道id
	BusinessId string `json:"business_id"` // 业务员id
	StartTime  string `json:"start_time"`  // 查询开始时间
	EndTime    string `json:"end_time"`    // 查询结束时间
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
	OderBY     string `json:"order_by"`
	OderType   string `json:"order_type"`
	IsOperator int    `json:"is_operator"` //是否渠道列表
	IsBusiness int    `json:"is_business"` //是否业务员列表
}

// 游戏盈亏统计表
type ReportGameDailyData struct {
	Id                 int64   `json:"id" db:"id"`
	PlatformId         int64   `json:"platform_id" db:"platform_id"`                   //游戏ID
	GameName           string  `json:"game_name" db:"game_name"`                       //游戏名称
	BusinessId         string  `json:"business_id" db:"business_id"`                   // 业务员id
	OperatorId         string  `json:"operator_id" db:"operator_id"`                   // 渠道id
	Running            float64 `json:"running" db:"running"`                           // 流水
	SandbagRunning     float64 `json:"sandbag_running" db:"sandbag_running"`           // 流水
	GameRound          int32   `json:"game_round" db:"game_round"`                     // 游戏局数
	GameTax            float64 `json:"game_tax" db:"game_tax"`                         // 游戏税收
	GameWinlost        float64 `json:"game_winlost" db:"game_winlost"`                 // 游戏赢亏
	SandbagGameWinlost float64 `json:"sandbag_game_winlost" db:"sandbag_game_winlost"` // 游戏赢亏
	CreatedAt          string  `json:"created_at" db:"created_at"`                     // 时间
	OperatorName       string  `json:"operator_name" db:"operator_name"`               // 渠道账号
	BusinessName       string  `json:"business_name" db:"business_name"`               // 业务员账号
	GameRate           float64 `json:"game_rate" db:"game_rate"`                       // 游戏回报率
	SystemProfit       float64 `json:"system_profit" db:"system_profit"`               // 系统盈亏
	SandbagProfit      float64 `json:"sandbag_profit" db:"sandbag_profit"`             // 返水盈亏
}

// 游戏盈亏总统计数据
type ReportGameStatisticsData struct {
	Running       float64 `json:"running" db:"running"`               // 流水
	GameRound     int32   `json:"game_round" db:"game_round"`         // 游戏局数
	GameTax       float64 `json:"game_tax" db:"game_tax"`             // 游戏税收
	GameWinlost   float64 `json:"game_winlost" db:"game_winlost"`     // 游戏赢亏
	GameRate      float64 `json:"game_rate" db:"game_rate"`           // 游戏回报率
	SystemProfit  float64 `json:"system_profit" db:"system_profit"`   // 系统盈亏
	SandbagProfit float64 `json:"sandbag_profit" db:"sandbag_profit"` // 返水盈亏
}

// 玩家游戏盈亏结算参数
type UserGameDailyParam struct {
	PlatformId int    `json:"platform_id"`
	StartTime  string `json:"start_time"` // 查询开始时间
	EndTime    string `json:"end_time"`   // 查询结束时间
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
	OderBY     string `json:"order_by"`
	OderType   string `json:"order_type"`
}

// 玩家游戏盈亏统计表 响应数据
type ReportUserGameDailyRetData struct {
	T int                       `cbor:"t" json:"total"`
	D []ReportUserGameDailyData `cbor:"d" json:"d"`
}

// 玩家游戏盈亏统计表
type ReportUserGameDailyData struct {
	Uid       int64   `json:"uid" db:"uid"`
	Running   float64 `json:"running" db:"running"`       // 流水
	GameRound int32   `json:"game_round" db:"game_round"` // 游戏局数
	//GameTax      float64 `json:"game_tax" db:"game_tax"`           // 游戏税收
	GameWinlost  float64 `json:"game_winlost" db:"game_winlost"`   // 游戏赢亏
	GameRate     float64 `json:"game_rate" db:"game_rate"`         // 游戏回报率
	SystemProfit float64 `json:"system_profit" db:"system_profit"` // 系统盈亏
}

// 玩家生态监控参数
type UserGameMonitorParam struct {
	Ctype     int    `json:"ctype"`
	StartTime string `json:"start_time"` // 查询开始时间
	EndTime   string `json:"end_time"`   // 查询结束时间
	Page      int    `json:"page"`
	PageSize  int    `json:"page_size"`
	OderBY    string `json:"order_by"`
	OderType  string `json:"order_type"`
}

// 玩家生态监统计表 响应数据
type ReportUserGameMonitorRetData struct {
	T int                         `cbor:"t" json:"total"`
	D []ReportUserGameMonitorData `cbor:"d" json:"d"`
}

// 玩家生态监统计表
type ReportUserGameMonitorData struct {
	CreatedAt    string  `json:"created_at" db:"created_at"`       // 时间
	Running      float64 `json:"running" db:"running"`             // 流水
	GameRound    int32   `json:"game_round" db:"game_round"`       // 游戏局数
	Deposit      float64 `json:"deposit" db:"deposit"`             // 充值数量
	Withdraw     float64 `json:"withdraw" db:"withdraw"`           // 提现数量
	GameTax      float64 `json:"game_tax" db:"game_tax"`           // 游戏税收
	GameWinlost  float64 `json:"game_winlost" db:"game_winlost"`   // 游戏赢亏
	GameRate     float64 `json:"game_rate" db:"game_rate"`         // 游戏回报率
	SystemProfit float64 `json:"system_profit" db:"system_profit"` // 系统盈亏
}

// 玩家留存参数
type UserRemainParam struct {
	Date       string `json:"date"` // 查询开始时间
	Ctype      int    `json:"ctype"`
	OperatorId string `json:"operator_id"` // 渠道id
	BusinessId string `json:"business_id"` // 业务员id
}

// 玩家留存 响应数据
type UserRemainRetData struct {
	T int                    `cbor:"t" json:"total"`
	D map[int]UserRemainData `cbor:"d" json:"d"`
}

// 玩家留存表
type UserRemainData struct {
	IsLogin  int `json:"is_login" db:"is_login"` // 是否登陆
	Running  int `json:"running" db:"running"`   // 流水
	Deposit  int `json:"deposit" db:"deposit"`   // 充值数量
	Withdraw int `json:"withdraw" db:"withdraw"` // 提现数量
}

// API费用 响应数据
type ReportApiFeeRetData struct {
	T int                `cbor:"t" json:"total"`
	D []ReportApiFeeData `cbor:"d" json:"d"`
}

// API费用参数，通用
type ReportApiFeeParam struct {
	MonthDate    string `json:"month_date"`                       //月份 Y-m 格式
	OperatorId   string `json:"operator_id"`                      // 渠道id
	OperatorName string `json:"operator_name" db:"operator_name"` // 渠道账号
	BusinessId   string `json:"business_id"`                      // 业务员id
	Page         int    `json:"page"`
	PageSize     int    `json:"page_size"`
	OderBY       string `json:"order_by"`
	OderType     string `json:"order_type"`
	IsOperator   int    `json:"is_operator"` //是否渠道列表
	IsBusiness   int    `json:"is_business"` //是否业务员列表
	ExportExcel  int    `json:"export_excel"`
}

// Api费用统计表
type ReportApiFeeData struct {
	MonthDate         string  `json:"month_date" db:"month_date"`
	BusinessId        string  `json:"business_id" db:"business_id"`               // 业务员id
	OperatorId        string  `json:"operator_id" db:"operator_id"`               // 渠道id
	Deposit           float64 `json:"deposit" db:"deposit"`                       // 充值数量
	DepositFee        float64 `json:"deposit_fee" db:"deposit_fee"`               // 充值手续费
	Withdraw          float64 `json:"withdraw" db:"withdraw"`                     // 提现数量
	WithdrawFee       float64 `json:"withdraw_fee" db:"withdraw_fee"`             // 提现手续费
	ApiFee            string  `json:"api_fee" db:"api_fee"`                       // Api费用
	GameFeeRate       float64 `json:"game_fee_rate" db:"game_fee_rate"`           // Api费用
	IntoFakepgRate    float64 `json:"into_fakepg_rate" db:"into_fakepg_rate"`     // 进入假pg概率
	TotalProfit       float64 `json:"total_profit" db:"total_profit"`             // 总利润
	OperatorName      string  `json:"operator_name" db:"operator_name"`           // 渠道账号
	BusinessName      string  `json:"business_name" db:"business_name"`           // 业务员账号
	UndepositWithdraw float64 `json:"undeposit_withdraw" db:"undeposit_withdraw"` // 未充提款
	Fagamimg          float64 `json:"fagamimg" db:"fagamimg"`                     // 假pg费用
}

// 代理明细/汇总/日报 参数，通用
type ReportProxyParam struct {
	Uid        string `json:"uid"`
	ProxyId    string `json:"proxy_id"`
	OperatorId string `json:"operator_id"` // 渠道id
	BusinessId string `json:"business_id"` // 业务员id
	ParentId   int    `json:"parent_id"`   // 邀请人id
	StartTime  string `json:"start_time"`  // 查询开始时间
	EndTime    string `json:"end_time"`    // 查询结束时间
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
	OderBY     string `json:"order_by"`
	OderType   string `json:"order_type"`
}

// 代理明细/汇总 响应数据
type ReportProxyRetData struct {
	T int               `cbor:"t" json:"total"`
	D []ReportProxyData `cbor:"d" json:"d"`
}

// 代理细/汇总报表
type ReportProxyData struct {
	Id              int     `json:"id" db:"id"`
	ProxyId         int     `json:"proxy_id" db:"uid"`
	Level           int     `json:"level" db:"level"`
	Deposit         float64 `json:"deposit" db:"deposit"`
	DepositNum      int32   `json:"deposit_num" db:"deposit_num"` // 充值人数
	Withdraw        float64 `json:"withdraw" db:"withdraw"`
	WithdrawNum     int32   `json:"withdraw_num" db:"withdraw_num"`           // 提现人数
	FirstDepositNum float64 `json:"first_deposit_num" db:"first_deposit_num"` // 首充人数
	FirstDeposit    float64 `json:"first_deposit" db:"first_deposit"`         // 首充数量
	Running         float64 `json:"running" db:"running"`
	GameRound       int32   `json:"game_round" db:"game_round"`
	GameWinlost     float64 `json:"game_winlost" db:"game_winlost"`
	GameTax         float64 `json:"game_tax" db:"game_tax"` // 游戏税收
	//TurntableBonus     float64 `json:"turntable_bonus" db:"turntable_bonus"`
	ProxyInviteBonus           float64 `json:"proxy_invite_bonus" db:"proxy_invite_bonus"`
	CreatedAt                  string  `json:"created_at" db:"created_at"`                     // 时间
	DepositCommiReturn         float64 `json:"deposit_commi_return" db:"deposit_commi_return"` //直属下级充值金额超过50的订单,用于代理周佣金返还
	TeamNum                    int32   `json:"team_num" db:"team_num"`                         //团队人数
	ValidNum                   int32   `json:"valid_num" db:"valid_num"`                       //有效人数
	Username                   string  `json:"username" db:"username"`
	OperatorId                 string  `json:"operator_id" db:"operator_id"`
	OperatorName               string  `json:"operator_name" db:"operator_name"`
	BusinessId                 string  `json:"business_id" db:"business_id"`
	BusinessName               string  `json:"business_name" db:"business_name"`
	ValidWaged                 string  `json:"valid_waged" db:"valid_waged"`
	AccuDepositBonus           float64 `json:"accu_deposit_bonus" db:"accu_deposit_bonus"`
	WeekLostReturn             float64 `json:"week_lost_return" db:"week_lost_return"`
	WeekBetReturn              float64 `json:"week_bet_return" db:"week_bet_return"`
	WeekDepositReturn          float64 `json:"week_deposit_return" db:"week_deposit_return"`
	WeekCommiReturn            float64 `json:"week_commi_return" db:"week_commi_return"`
	ChildWagedReturn           float64 `json:"ChildWagedReturn" db:"ChildWagedReturn"`
	UnbindDepositAmount        float64 `json:"unbind_deposit_amount" db:"unbind_deposit_amount"`
	UnbindDepositCounts        int     `json:"unbind_deposit_counts" db:"unbind_deposit_counts"`
	EnableRechargeShare        float64 `json:"enable_recharge_share" db:"enable_recharge_share"`
	EnableFirstDepositToParent float64 `json:"enable_first_deposit_to_parent" db:"enable_first_deposit_to_parent"`
	HiddenDepositAmount        float64 `json:"hidden_deposit_amount" db:"hidden_deposit_amount"`
}

// 代理关系参数，通用
type ReportProxyRelationParam struct {
	Uid            string `json:"uid"`              //受邀人ID
	Pid            string `json:"pid"`              //邀请人ID
	RegIp          string `json:"reg_ip"`           //注册ip
	IsRecharge     int    `json:"is_recharge"`      // 是否充值  0=全部，1=充值，2=未充值
	RegStartTime   string `json:"reg_start_time"`   // 注册开始时间
	RegEndTime     string `json:"reg_end_time"`     // 注册结束时间
	LoginStartTime string `json:"login_start_time"` // 登陆开始时间
	LoginEndTime   string `json:"login_end_time"`   // 登陆结束时间
	Page           int    `json:"page"`
	PageSize       int    `json:"page_size"`
	OderBY         string `json:"order_by"`
	OderType       string `json:"order_type"`
}

// 代理关系报表 响应数据
type ReportProxyRelationRetData struct {
	T int                       `cbor:"t" json:"total"`
	D []ReportProxyRelationData `cbor:"d" json:"d"`
	S RelationStatisticsData    `cbor:"s" json:"s"`
}

// 代理关系报表
type ReportProxyRelationData struct {
	Uid              int     `json:"uid" db:"uid"`
	Pid              int     `json:"pid" db:"pid"`
	Deposit          float64 `json:"deposit" db:"deposit"`                                     //总充值
	Withdraw         float64 `json:"withdraw" db:"withdraw"`                                   //总提现
	FirstDeposit     float64 `json:"first_deposit" db:"first_deposit"`                         // 首充数量
	FirstDepositTime string  `json:"first_deposit_time" db:"first_deposit_time"`               // 首充时间
	Profit           float64 `json:"profit" db:"profit"`                                       //总盈亏
	CreatedAt        string  `json:"created_at" db:"created_at" cbor:"created_at"`             //注册时间
	CreatedIp        string  `json:"created_ip" db:"created_ip" cbor:"created_ip"`             //注册ip
	LastLoginAt      string  `json:"last_login_at" db:"last_login_at" cbor:"last_login_at"`    //最后登陆时间
	LastLoginIp      string  `json:"last_login_ip" db:"last_login_ip" cbor:"last_login_ip"`    //最后登陆ip
	DonateToParent   string  `json:"DonateToParent" db:"DonateToParent" cbor:"DonateToParent"` //对父级的贡献
	TotalWaged       string  `json:"totalWaged" db:"totalWaged"`                               // 总打码
}

// 代理关系报统计
type RelationStatisticsData struct {
	Deposit        float64 `json:"deposit" db:"deposit"`                                     //总充值
	Withdraw       float64 `json:"withdraw" db:"withdraw"`                                   //总提现
	Profit         float64 `json:"profit" db:"profit"`                                       //总盈亏
	Num            int32   `json:"num" db:"num"`                                             //总人数
	Tax            float64 `json:"tax" db:"tax"`                                             //总税收
	FirstDeposit   float64 `json:"first_deposit" db:"first_deposit"`                         // 首充数量
	DonateToParent string  `json:"DonateToParent" db:"DonateToParent" cbor:"DonateToParent"` //对父级的贡献
}

// 代理日报报表 响应数据
type ReportProxyDailyRetData struct {
	T int                            `cbor:"t" json:"total"`
	D []ReportProxyDailyData         `cbor:"d" json:"d"`
	S ReportProxyDailyStatisticsData `cbor:"s" json:"s"`
}

// 代理日报报表
type ReportProxyDailyData struct {
	Uid              int     `json:"uid" db:"uid"`
	CreatedAt        string  `json:"created_at" db:"created_at"`
	ProxyInviteBonus float64 `json:"proxy_invite_bonus" db:"proxy_invite_bonus"` // 代理邀请奖励
	Deposit          float64 `json:"deposit" db:"deposit"`                       //总充值
	Withdraw         float64 `json:"withdraw" db:"withdraw"`                     //总提现
	Running          float64 `json:"running" db:"running"`                       //流水
	TeamNum          string  `json:"team_num" db:"team_num"`                     //团队人数
	ValidNum         string  `json:"valid_num" db:"valid_num"`                   //有效人数
	FirstDepositNum  string  `json:"first_deposit_num" db:"first_deposit_num"`   //首充人数
	TeamDeposit      string  `json:"team_deposit" db:"team_deposit"`             //下级充值
	TeamWithdraw     string  `json:"team_withdraw" db:"team_withdraw"`           //下级提现
	TeamRunning      string  `json:"team_running" db:"team_running"`             //下级流水
}

// 代理日报报统计
type ReportProxyDailyStatisticsData struct {
	ProxyInviteBonus float64 `json:"proxy_invite_bonus" db:"proxy_invite_bonus"` // 代理邀请奖励
	FirstDepositNum  int     `json:"first_deposit_num" db:"first_deposit_num"`   //1级首充人数
	ValidNum         int     `json:"valid_num" db:"valid_num"`                   //1级有效人数
	Deposit          string  `json:"deposit" db:"deposit"`                       //1级充值金额

	TeamFirstDepositNum int    `json:"team_first_deposit_num" db:"team_first_deposit_num"` //23级首充人数
	TeamValidNum        int    `json:"team_valid_num" db:"team_valid_num"`                 //23级有效人数
	TeamDeposit         string `json:"team_deposit" db:"team_deposit"`                     //23级充值金额

	TeamRunning string `json:"team_running" db:"team_running"` //下级流水
}

// 代理总报报表 响应数据
type ReportProxyStatisticsRetData struct {
	T int                         `cbor:"t" json:"total"`
	D []ReportProxyStatisticsData `cbor:"d" json:"d"`
}

// 代理总报报表
type ReportProxyStatisticsData struct {
	Uid     int     `json:"uid" db:"uid"`
	State   int     `json:"state" db:"state"`
	Deposit float64 `json:"deposit" db:"deposit"` //总充值
	Running float64 `json:"running" db:"running"` //流水

	Lv1YesDeposit float64 `json:"lv1_yes_deposit" db:"lv1_yes_deposit"` //
	Lv1YesNum     float64 `json:"lv1_yes_num" db:"lv1_yes_num"`         //

	TeamNum        string `json:"team_num" db:"team_num"`                 //
	TeamDeposit    string `json:"team_deposit" db:"team_deposit"`         //
	TeamDepositNum string `json:"team_deposit_num" db:"team_deposit_num"` //

	Lv1TeamNum    string `json:"lv1_team_num" db:"lv1_team_num"`       //
	Lv1Deposit    string `json:"lv1_deposit" db:"lv1_deposit"`         //
	Lv1DepositNum string `json:"lv1_deposit_num" db:"lv1_deposit_num"` //
	Lv1Running    string `json:"lv1_running" db:"lv1_running"`         //

	Lv2TeamNum    string `json:"lv2_team_num" db:"lv2_team_num"`       //
	Lv2Deposit    string `json:"lv2_deposit" db:"lv2_deposit"`         //
	Lv2DepositNum string `json:"lv2_deposit_num" db:"lv2_deposit_num"` //
	Lv2Running    string `json:"lv2_running" db:"lv2_running"`         //

	Lv3TeamNum    string `json:"lv3_team_num" db:"lv3_team_num"`       //
	Lv3Deposit    string `json:"lv3_deposit" db:"lv3_deposit"`         //
	Lv3DepositNum string `json:"lv3_deposit_num" db:"lv3_deposit_num"` //
	Lv3Running    string `json:"lv3_running" db:"lv3_running"`         //
}

// 代理博主报表 响应数据
type ReportBolgerRetData struct {
	T int                `cbor:"t" json:"total"`
	D []ReportBolgerData `cbor:"d" json:"d"`
}

// 代理博主报表
type ReportBolgerData struct {
	Uid            int    `json:"uid" db:"uid"`
	BlogerDate     string `json:"bloger_date" db:"bloger_date"`
	BlogerName     string `json:"bloger_name" db:"bloger_name"`
	UpScore        string `json:"up_score" db:"up_score"`                 // 上分数量
	Deposit        string `json:"deposit" db:"deposit"`                   //总充值
	Withdraw       string `json:"withdraw" db:"withdraw"`                 //总提现
	TeamNum        string `json:"team_num" db:"team_num"`                 //团队人数
	TeamDepositNum string `json:"team_deposit_num" db:"team_deposit_num"` //下级充值人数
	TeamDeposit    string `json:"team_deposit" db:"team_deposit"`         //下级充值
	TeamWithdraw   string `json:"team_withdraw" db:"team_withdraw"`       //下级提现
	OperatorId     string `json:"operator_id" db:"operator_id"`
	OperatorName   string `json:"operator_name" db:"operator_name"`
	BusinessId     string `json:"business_id" db:"business_id"`
	BusinessName   string `json:"business_name" db:"business_name"`

	Profit           string `json:"profit" db:"profit"`                       //利润
	ContributionRate string `json:"contribution_rate" db:"contribution_rate"` //贡献比

}

type ReportBolgerRetData2 struct {
	T int                 `cbor:"t" json:"total"`
	D []ReportBolgerData2 `cbor:"d" json:"d"`
}

// 代理博主报表
type ReportBolgerData2 struct {
	Uid          int    `json:"uid" db:"uid"`
	BlogerDate   string `json:"bloger_date" db:"bloger_date"`
	BlogerName   string `json:"bloger_name" db:"bloger_name"`
	UpScore      string `json:"up_score" db:"up_score"` // 上分数量
	Deposit      string `json:"deposit" db:"deposit"`   //总充值
	Withdraw     string `json:"withdraw" db:"withdraw"` //总提现
	OperatorId   string `json:"operator_id" db:"operator_id"`
	OperatorName string `json:"operator_name" db:"operator_name"`
	BusinessId   string `json:"business_id" db:"business_id"`
	BusinessName string `json:"business_name" db:"business_name"`

	Lv1TeamNum    string `json:"lv1_team_num" db:"lv1_team_num"`       //
	Lv1Deposit    string `json:"lv1_deposit" db:"lv1_deposit"`         //
	Lv1DepositNum string `json:"lv1_deposit_num" db:"lv1_deposit_num"` //
	Lv1Withdraw   string `json:"lv1_withdraw" db:"lv1_withdraw"`       //

	Lv2TeamNum    string `json:"lv2_team_num" db:"lv2_team_num"`       //
	Lv2Deposit    string `json:"lv2_deposit" db:"lv2_deposit"`         //
	Lv2DepositNum string `json:"lv2_deposit_num" db:"lv2_deposit_num"` //
	Lv2Withdraw   string `json:"lv2_withdraw" db:"lv2_withdraw"`       //

	Lv3TeamNum    string `json:"lv3_team_num" db:"lv3_team_num"`       //
	Lv3Deposit    string `json:"lv3_deposit" db:"lv3_deposit"`         //
	Lv3DepositNum string `json:"lv3_deposit_num" db:"lv3_deposit_num"` //
	Lv3Withdraw   string `json:"lv3_withdraw" db:"lv3_withdraw"`       //

}

type BolgerData struct {
	Uid        string `json:"uid" db:"uid"`
	BlogerDate int    `json:"bloger_date" db:"bloger_date"`
	BlogerName string `json:"bloger_name" db:"bloger_name"`
}

type BolgerDeleteData struct {
	Uid string `json:"uid" db:"uid"`
	Id  string `json:"id" db:"id"`
}

// 掉绑报表 响应数据
type ReportUnbindRetData struct {
	T int                        `cbor:"t" json:"total"`
	D []ReportUnbindData         `cbor:"d" json:"d"`
	S ReportUnbindStatisticsData `cbor:"s" json:"s"`
}

// 掉绑报表总统计
type ReportUnbindStatisticsData struct {
	Num      string `json:"num" db:"num"`
	Deposit  string `json:"deposit" db:"deposit"`   //总充值
	Withdraw string `json:"withdraw" db:"withdraw"` //总提现
}

// 掉绑报表
type ReportUnbindData struct {
	Uid          int    `json:"uid" db:"uid"`
	ParentId     int    `json:"parent_id" db:"parent_id"`
	CreatedAt    string `json:"created_at" db:"created_at"`
	Deposit      string `json:"deposit" db:"deposit"`   //总充值
	Withdraw     string `json:"withdraw" db:"withdraw"` //总提现
	OperatorId   string `json:"operator_id" db:"operator_id"`
	OperatorName string `json:"operator_name" db:"operator_name"`
	BusinessId   string `json:"business_id" db:"business_id"`
	BusinessName string `json:"business_name" db:"business_name"`
}

type UnbindControllerData struct {
	Id           string `json:"id" db:"id"`
	Uid          string `json:"uid" db:"uid"`
	Username     string `json:"username" db:"username"`
	OperatorId   string `json:"operator_id" db:"operator_id"`
	OperatorName string `json:"operator_name" db:"operator_name"`
	BusinessId   string `json:"business_id" db:"business_id"`
	BusinessName string `json:"business_name" db:"business_name"`
}

type UnbindControllerRetData struct {
	T int                    `cbor:"t" json:"total"`
	D []UnbindControllerData `cbor:"d" json:"d"`
}

// 通用参数
type CommonParam struct {
	Uid      int    `json:"uid"`
	Page     int    `json:"page"`
	PageSize int    `json:"page_size"`
	OderBY   string `json:"order_by"`
	OderType string `json:"order_type"`
}

// 代理周返佣报表 响应数据
type WeekCommiRetData struct {
	T int             `cbor:"t" json:"total"`
	D []WeekCommiData `cbor:"d" json:"d"`
	S WeekCommiData   `cbor:"s" json:"s"`
}

// 代理周返佣报表
type WeekCommiData struct {
	Uid                  int     `json:"uid" db:"uid"`
	WeekDepositReturn    float64 `json:"week_deposit_return" db:"week_deposit_return"`
	WeekBetReturn        float64 `json:"week_bet_return" db:"week_bet_return"`
	WeekLostReturn       float64 `json:"week_lost_return" db:"week_lost_return"`
	WeekProxyCommiReturn float64 `json:"week_proxy_commi_return" db:"week_proxy_commi_return"`
	CreateTime           string  `json:"create_time" db:"create_time"`
	Username             string  `json:"username" db:"username"`
	OperatorId           string  `json:"operator_id" db:"operator_id"`
	OperatorName         string  `json:"operator_name" db:"operator_name"`
	BusinessId           string  `json:"business_id" db:"business_id"`
	BusinessName         string  `json:"business_name" db:"business_name"`
}

// 周活动数据参数
type WeeklyCommiParam struct {
	Uid      int    `json:"uid"`
	Ctype    int    `json:"ctype"`
	Page     int    `json:"page"`
	PageSize int    `json:"page_size"`
	OderBY   string `json:"order_by"`
	OderType string `json:"order_type"`
}

// 周活动数据 响应数据
type WeeklyCommiRetData struct {
	T int               `cbor:"t" json:"total"`
	D []WeeklyCommiData `cbor:"d" json:"d"`
}

// 周活动数据
type WeeklyCommiData struct {
	Uid           int    `json:"uid" db:"uid"`
	OperatorId    string `json:"operator_id" db:"operator_id"`
	BusinessId    string `json:"business_id" db:"business_id"`
	ThisWeek      string `json:"this_week" db:"this_week"`
	LastWeek      string `json:"last_week" db:"last_week"`
	LastWeekCommi string `json:"last_week_commi" db:"last_week_commi"`
	ReceiveCommi  string `json:"receive_commi" db:"receive_commi"`
	TotalCommi    string `json:"total_commi" db:"total_commi"`
}

// 下级流水返利参数
type RunningCommiParam struct {
	Uid        string `json:"uid"`
	SuperiorId string `json:"superior_id" db:"superior_id"`
	StartTime  string `json:"start_time"` // 查询开始时间
	EndTime    string `json:"end_time"`   // 查询结束时间
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
	OderBY     string `json:"order_by"`
	OderType   string `json:"order_type"`
}

// 下级流水返利 响应数据
type RunningCommiRetData struct {
	T int                `cbor:"t" json:"total"`
	D []RunningCommiData `cbor:"d" json:"d"`
	S string             `cbor:"s" json:"s"`
}

// 下级流水返利数据
type RunningCommiData struct {
	Id  int `json:"id" db:"id"`
	Uid int `json:"uid" db:"uid"`

	SuperiorId string  `json:"superior_id" db:"superior_id"`
	Level      string  `json:"level" db:"level"`
	WagedCommi string  `json:"waged_commi" db:"waged_commi"`
	ReturnRate float64 `db:"return_rate" json:"return_rate"`
	ValidWaged string  `json:"valid_waged" db:"valid_waged"`
	CreatedAt  string  `json:"created_at" db:"created_at"` // 时间

	OperatorId string `json:"operator_id" db:"operator_id"`
	BusinessId string `json:"business_id" db:"business_id"`
}

// 充值分成参数
type DivideDepositParam struct {
	Uid       string `json:"uid"`
	Level     string `json:"level" db:"level"`
	ParentId  string `json:"parent_id" db:"parent_id"`
	StartTime string `json:"start_time"` // 查询开始时间
	EndTime   string `json:"end_time"`   // 查询结束时间
	Page      int    `json:"page"`
	PageSize  int    `json:"page_size"`
	OderBY    string `json:"order_by"`
	OderType  string `json:"order_type"`
}

// 充值分成 响应数据
type DivideDepositRetData struct {
	T int                 `cbor:"t" json:"total"`
	D []DivideDepositData `cbor:"d" json:"d"`
	S DivideDepositData   `cbor:"s" json:"s"`
}

// 充值分成
type DivideDepositData struct {
	Id            int     `json:"id" db:"id"`
	Uid           string  `json:"uid" db:"uid"`
	ParentId      string  `json:"parent_id" db:"parent_id"`
	Level         string  `json:"level" db:"level"`
	Amount        string  `json:"amount" db:"amount"`
	RechargeRate  float64 `db:"recharge_rate" json:"recharge_rate"`
	RechargeShare float64 `json:"recharge_share" db:"recharge_share"`
	CreateAt      string  `json:"create_at" db:"create_at"` // 时间
	State         string  `json:"state" db:"state"`
	Nickname      string  `json:"nickname" db:"nickname"`
	FirstCharge   string  `json:"first_charge" db:"first_charge"`
	HiddenAmount  string  `json:"hidden_amount" db:"hidden_amount"`
	OperatorId    string  `json:"operator_id" db:"operator_id"`
	BusinessId    string  `json:"business_id" db:"business_id"`
	OrderId       string  `json:"orderId" db:"orderId"`
}

// 首充分成 响应数据
type FisrtDepositRetData struct {
	T int                `cbor:"t" json:"total"`
	D []FisrtDepositData `cbor:"d" json:"d"`
	S FisrtDepositData   `cbor:"s" json:"s"`
}

// 首充分成
type FisrtDepositData struct {
	Id            int     `json:"id" db:"id"`
	Uid           string  `json:"uid" db:"uid"`
	ParentId      string  `json:"parent_id" db:"parent_id"`
	Level         string  `json:"level" db:"level"`
	Amount        string  `json:"amount" db:"amount"`
	RechargeRate  float64 `json:"recharge_rate" db:"rate"`
	RechargeShare float64 `json:"recharge_share" db:"bonus"`
	CreateAt      string  `json:"create_at" db:"create_at"` // 时间
	State         string  `json:"state" db:"state"`
	Nickname      string  `json:"nickname" db:"nickname"`
	OperatorId    string  `json:"operator_id" db:"operator_id"`
	BusinessId    string  `json:"business_id" db:"business_id"`
}

// 玩家控制表
type MemberControllerButton struct {
	Uid                int    `json:"uid" db:"uid"`
	GameButton         int8   `json:"game_button" db:"game_button"`                   //游戏开关
	WithdrawButton     int8   `json:"withdraw_button" db:"withdraw_button"`           //提现开关
	TaxButton          int8   `json:"tax_button" db:"tax_button"`                     //抽税开关
	AutoWithdrawButton int8   `json:"auto_withdraw_button" db:"auto_withdraw_button"` //自动出款开关
	ControlCodeButton  int8   `json:"control_code_button" db:"control_code_button"`   //控码开关
	UnbindButton       int8   `json:"unbind_button" db:"unbind_button"`               //掉绑开关
	IsBloger           int8   `json:"is_bloger" db:"is_bloger"`                       //是否博主
	FakePgButton       int8   `json:"fake_pg_button" db:"fake_pg_button"`             //假pg开关
	CommiButton        int8   `json:"commi_button" db:"commi_button"`                 //佣金开关
	WinFlowMultiple    string `json:"win_flow_multiple" db:"win_flow_multiple"`       //
	LoseFlowMultiple   string `json:"lose_flow_multiple" db:"lose_flow_multiple"`     //
	RtpControlWay      string `json:"rtp_control_way" db:"rtp_control_way"`
	Rtp                string `json:"rtp" db:"rtp"`
	FakePpRtp          string `json:"fake_PP_rtp" db:"fake_PP_rtp"`
	FakeJDBRtp         string `json:"fake_JDB_rtp" db:"fake_JDB_rtp"`
	FakeJILIRtp        string `json:"fake_JILI_rtp" db:"fake_JILI_rtp"`
	DisbindControl     string `json:"disbind_control" db:"disbind_control"`

	RechargeButton             string `json:"recharge_button" db:"recharge_button"`
	RechargeShareType          string `json:"recharge_share_type" db:"recharge_share_type"`
	RechargeShareWagedReq      string `json:"recharge_share_waged_req" db:"recharge_share_waged_req"`
	RechargeShareRate          string `json:"recharge_share_rate" db:"recharge_share_rate"`
	RechargeShareRateF         string `json:"recharge_share_rate_f" db:"recharge_share_rate_f"`
	CommiSwitchSyncSub         string `json:"commi_switch_sync_sub" db:"commi_switch_sync_sub"`
	RechargeShareSwitchSyncSub string `json:"recharge_share_switch_sync_sub" db:"recharge_share_switch_sync_sub"`

	SandbagSwitch    string `json:"sandbag_switch" db:"sandbag_switch"` //放水开关 0关1开
	SandbagAmountMax string `json:"sandbag_amount_max" db:"sandbag_amount_max"`

	RechargeHiddenSwitch string `json:"recharge_hidden_switch" db:"recharge_hidden_switch"`

	SycDisbindLv1 string `json:"syc_disbind_lv1" db:"syc_disbind_lv1"`
	SycDisbindLv2 string `json:"syc_disbind_lv2" db:"syc_disbind_lv2"`
	SycDisbindLv3 string `json:"syc_disbind_lv3" db:"syc_disbind_lv3"`

	SycChargeHiddenLv1 string `json:"syc_charge_hidden_lv1" db:"syc_charge_hidden_lv1"`
	SycChargeHiddenLv2 string `json:"syc_charge_hidden_lv2" db:"syc_charge_hidden_lv2"`
	SycChargeHiddenLv3 string `json:"syc_charge_hidden_lv3" db:"syc_charge_hidden_lv3"`
	ChargeHiddenButton string `json:"charge_hidden_button" db:"charge_hidden_button"`

	ChargeHiddenControlS string `json:"charge_hidden_control_s" db:"charge_hidden_control_s"`
	ChargeHiddenControlF string `json:"charge_hidden_control_f" db:"charge_hidden_control_f"`
	ChargeHiddenButtonS  string `json:"charge_hidden_button_s" db:"charge_hidden_button_s"`
	ChargeHiddenButtonF  string `json:"charge_hidden_button_f" db:"charge_hidden_button_f"`
}

// 玩家控制表修改参数
type UpdateMemberParam struct {
	Uid   int    `json:"uid" db:"uid"` // 申请人uid
	Key   string `json:"key" db:"key"`
	Value string `json:"value" db:"value"`
}

// 玩家控制表修改参数
type UpdateTeamMemberParam struct {
	Uid           int    `json:"uid" db:"uid"` // 申请人uid
	RtpControlWay string `json:"rtp_control_way" db:"rtp_control_way"`
	Rtp           string `json:"rtp" db:"rtp"`
	FakePpRtp     string `json:"fake_PP_rtp" db:"fake_PP_rtp"`
	FakeJDBRtp    string `json:"fake_JDB_rtp" db:"fake_JDB_rtp"`
	FakeJILIRtp   string `json:"fake_JILI_rtp" db:"fake_JILI_rtp"`

	CommiButton          string `json:"commi_button" db:"commi_button"`
	RechargeHiddenSwitch string `json:"recharge_hidden_switch" db:"recharge_hidden_switch"`
	UnbindButton         string `json:"unbind_button" db:"unbind_button"`
	DisbindControl       string `json:"disbind_control" db:"disbind_control"`
	Level                int    `json:"level" db:"level"`
}

// 登录日志
type MemberLoginLogParam struct {
	Uid       int    `json:"uid"`
	LoginIp   string `json:"login_ip"`
	StartTime string `json:"start_time"` // 查询开始时间
	EndTime   string `json:"end_time"`   // 查询结束时间
	Page      int    `json:"page"`
	PageSize  int    `json:"page_size"`
	OderBY    string `json:"order_by"`
	OderType  string `json:"order_type"`
}

// 登录日志响应参数
type MemberLoginLogRetData struct {
	T int                  `cbor:"t" json:"total"`
	D []MemberLoginLogData `cbor:"d" json:"d"`
}
type MemberLoginLogData struct {
	Uid          int64  `json:"uid" db:"uid"`
	Device       string `json:"device" db:"device"`
	Username     string `json:"username" db:"username"`
	LoginIp      string `json:"login_ip" db:"login_ip"`
	LoginTime    string `json:"login_time" db:"login_time"`
	BusinessId   string `json:"business_id" db:"business_id"`     // 业务员id
	OperatorId   string `json:"operator_id" db:"operator_id"`     // 渠道id
	OperatorName string `json:"operator_name" db:"operator_name"` // 渠道账号
	BusinessName string `json:"business_name" db:"business_name"` // 业务员账号
}

// 游戏记录参数
type GameListParam struct {
	Uid        string `json:"uid"`
	PlatformId string `json:"game_id"`     //平台ID
	Sandbag    string `json:"sandbag"`     //平台ID
	OperatorId string `json:"operator_id"` //渠道ID
	BusinessId string `json:"business_id"` //业务员ID
	RouteName  string `json:"route_name"`  //
	StartTime  string `json:"start_time"`  // 查询开始时间
	EndTime    string `json:"end_time"`    // 查询结束时间
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
	OderBY     string `json:"order_by"`
	OderType   string `json:"order_type"`
}

// 金币记录参数
type CoinListParam struct {
	Uid         string `json:"uid"`
	Ctype       string `json:"ctype"` //金币类型
	OperatorId  string `json:"operator_id"`
	BusinessId  string `json:"business_id"`
	StartTime   string `json:"start_time"` // 查询开始时间
	EndTime     string `json:"end_time"`   // 查询结束时间
	Page        int    `json:"page"`
	PageSize    int    `json:"page_size"`
	OderBY      string `json:"order_by"`
	OderType    string `json:"order_type"`
	ExportExcel int    `json:"export_excel"`
}
type WeekConfigRetData struct {
	Deposit []WeekDepositReturnRate    `db:"deposit" json:"deposit"`
	Lost    []WeekLostReturnRate       `db:"lost" json:"lost"`
	Commi   []WeekProxyCommiReturnRate `db:"commi" json:"commi"`
	Running []WeekRunningReturnRate    `db:"running" json:"running"`
}

// 周充值返利
type WeekDepositReturnRate struct {
	ID         int     `db:"id" json:"id"`
	Deposit    float64 `db:"deposit" json:"deposit"`
	ReturnRate int     `db:"return_rate" json:"return_rate"`
}

// 周亏损返利
type WeekLostReturnRate struct {
	ID         int     `db:"id" json:"id"`
	Running    float64 `db:"running" json:"running"`
	ReturnRate int     `db:"return_rate" json:"return_rate"`
}

// 周返佣返利
type WeekProxyCommiReturnRate struct {
	ID         int     `db:"id" json:"id"`
	Deposit    float64 `db:"deposit" json:"deposit"`
	ReturnRate int     `db:"return_rate" json:"return_rate"`
}

// 周投注返利
type WeekRunningReturnRate struct {
	ID         int     `db:"id" json:"id"`
	Running    float64 `db:"running" json:"running"`
	ReturnRate int     `db:"return_rate" json:"return_rate"`
}

// 周配置更新
type UpdateWeekConfigParam struct {
	Ctype      string  `db:"ctype" json:"ctype"`
	ID         int     `db:"id" json:"id"`
	Deposit    float64 `db:"deposit" json:"deposit"`
	Running    float64 `db:"running" json:"running"`
	ReturnRate int     `db:"return_rate" json:"return_rate"`
}

type DailyConfigRetData struct {
	//Deposit []DailyDepositReturnRate    `db:"deposit" json:"deposit"`
	//Lost    []DailyLostReturnRate       `db:"lost" json:"lost"`
	//Commi   []DailyProxyCommiReturnRate `db:"commi" json:"commi"`
	Running []DailyRunningReturnRate `db:"running" json:"running"`
}

// 日充值返利
type DailyDepositReturnRate struct {
	ID         int     `db:"id" json:"id"`
	Deposit    float64 `db:"deposit" json:"deposit"`
	ReturnRate int     `db:"return_rate" json:"return_rate"`
}

// 日亏损返利
type DailyLostReturnRate struct {
	ID         int     `db:"id" json:"id"`
	Running    float64 `db:"running" json:"running"`
	ReturnRate int     `db:"return_rate" json:"return_rate"`
}

// 日返佣返利
type DailyProxyCommiReturnRate struct {
	ID         int     `db:"id" json:"id"`
	Deposit    float64 `db:"deposit" json:"deposit"`
	ReturnRate int     `db:"return_rate" json:"return_rate"`
}

// 日投注返利
type DailyRunningReturnRate struct {
	ID         int     `db:"id" json:"id"`
	Running    float64 `db:"running" json:"running"`
	ReturnRate int     `db:"return_rate" json:"return_rate"`
}

// 日配置更新
type UpdateDailyConfigParam struct {
	Ctype      string  `db:"ctype" json:"ctype"`
	ID         int     `db:"id" json:"id"`
	Deposit    float64 `db:"deposit" json:"deposit"`
	Running    float64 `db:"running" json:"running"`
	ReturnRate int     `db:"return_rate" json:"return_rate"`
}

// 累计充值配置
type DepositAward struct {
	ID                int     `db:"ID" json:"ID"`
	Level             int     `db:"level" json:"level"`
	AccuDepositAmount float64 `db:"accu_deposit_amount" json:"accu_deposit_amount"`
	Bonus             float64 `db:"bonus" json:"bonus"`
}

// 充值分成配置
type DepositDivide struct {
	ID    int     `db:"id" json:"id"`
	Level int     `db:"level" json:"level"`
	Rate  float64 `db:"rate" json:"rate"`
}

// 人数邀请梯度配置
type ProxyInviteBonus struct {
	ID          int     `db:"id" json:"id"`
	ValidCounts int     `db:"valid_Counts" json:"valid_Counts"`
	Bonus       float64 `db:"bonus" json:"bonus"`
}

// 首充邀请梯度配置
type ProxyDepositInviteBonus struct {
	ID      int     `db:"id" json:"id"`
	Deposit int     `db:"deposit" json:"deposit"`
	Bonus   float64 `db:"bonus" json:"bonus"`
}

// 掉绑比例配置
type UnbindConfig struct {
	ID              int     `db:"ID" json:"ID"`
	InviteCounts    int     `db:"InviteCounts" json:"InviteCounts"`
	DisableBindRate float64 `db:"DisableBindRate" json:"DisableBindRate"`
	MaxDisableBind  float64 `db:"max_disableBind" json:"max_disableBind"`
	OperatorId      string  `db:"operator_id" json:"operator_id"`
	//Num             string  `db:"num" json:"num"`
}

// 抽税比例配置
type TaxConfig struct {
	ID           int     `db:"id" json:"id"`
	ProfitAmount float64 `db:"profit_amount" json:"profit_amount"`
	TaxRate      float64 `db:"tax_rate" json:"tax_rate"`
}

// 抽税比例配置
type AddwageConfig struct {
	ID        int     `db:"id" json:"id"`
	WinAmount float64 `db:"win_amount" json:"win_amount"`
	Wage      float64 `db:"wage" json:"wage"`
}

// 抽税比例配置
type ValidwageConfig struct {
	ID             int     `db:"id" json:"id"`
	BetAmount      float64 `db:"bet_amount" json:"bet_amount"`
	ValidWagedRate float64 `db:"valid_waged_rate" json:"valid_waged_rate"`
}

// 假pg rtp配置
type FakepgConfig struct {
	ID         int     `db:"id" json:"id"`
	OperatorId string  `db:"operator_id" json:"operator_id"`
	Money      float64 `db:"money" json:"money"`
	RTP        float64 `db:"RTP" json:"RTP"`
}

// 假pp rtp配置
type FakeppConfig struct {
	ID         int     `db:"id" json:"id"`
	OperatorId string  `db:"operator_id" json:"operator_id"`
	Money      float64 `db:"money" json:"money"`
	RTP        float64 `db:"RTP" json:"RTP"`
}

// 活动开关
type ActiveSwitch struct {
	ID          int    `db:"id" json:"id"`
	ActiveType  int    `db:"active_type" json:"active_type"`
	ActiveName  string `db:"active_name" json:"active_name"`
	Status      int    `db:"status" json:"status"`
	PopupSwitch int    `db:"popup_switch" json:"popup_switch"`
}

// 打码任务参数
type WagRequireParam struct {
	Uid        int    `json:"uid"`
	OperatorId string `json:"operator_id"`
	BusinessId string `json:"business_id"`
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
	OderBY     string `json:"order_by"`
	OderType   string `json:"order_type"`
}

// 打码任务操作参数
type WagRequireOptParam struct {
	Uid   int     `json:"uid"`
	Otype int     `json:"otype"`
	Wage  float64 `json:"wage"`
}

type WagRequire struct {
	ID              int     `json:"ID" db:"ID"`
	Uid             int     `json:"uid" db:"uid"`
	ChangeMoney     float64 `json:"ChangeMoney" db:"ChangeMoney"`         //金额变化
	NeedWageRequire float64 `json:"NeedWageRequire" db:"NeedWageRequire"` //需要的打码量
	CurWageRequire  float64 `json:"CurWageRequire" db:"CurWageRequire"`   //当前打码量
	Status          int     `json:"Status" db:"Status"`                   // 状态 1=进行中 2=已完成
	AddTime         string  `json:"AddTime" db:"AddTime"`                 // 打码增加时间
	WageFinishTime  string  `json:"WageFinishTime" db:"WageFinishTime"`   // 打码完成时间
	WageFinishWay   int     `json:"WageFinishWay" db:"WageFinishWay"`     // 打码完成方式
	ComRate         float64 `json:"com_rate" db:"com_rate"`               // 完成度
	ChangeType      string  `json:"ChangeType" db:"ChangeType"`           //
	ChangeName      string  `json:"ChangeName" db:"ChangeName"`           //
}

// 打码任务
type WagRequireRetData struct {
	T int          `cbor:"t" json:"total"`
	D []WagRequire `cbor:"d" json:"d"`
}

// 假pg配置参数
type FakePgConfigParam struct {
	ID         int    `db:"id" json:"id"`
	PlatformId int    `db:"platform_id" json:"platform_id"`
	PgId       string `db:"pg_id" json:"pg_id"`
	FakePgid   string `db:"fake_pgid" json:"fake_pgid"`
	PgName     string `db:"pg_name" json:"pg_name"`
	Status     int    `db:"status" json:"status"`
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
}

//// 假pp配置参数
//type FakePpConfigParam struct {
//	ID         int    `db:"id" json:"id"`
//	PlatformId int    `db:"platform_id" json:"platform_id"`
//	PgId       string `db:"pg_id" json:"pg_id"`
//	FakePgid   string `db:"fake_pgid" json:"fake_pgid"`
//	PgName     string `db:"pg_name" json:"pg_name"`
//	Status     int    `db:"status" json:"status"`
//	Page       int    `json:"page"`
//	PageSize   int    `json:"page_size"`
//}

// 假pg配置响应
type FakePgConfigRetData struct {
	T int            `cbor:"t" json:"total"`
	D []FakePgConfig `cbor:"d" json:"d"`
}

// 假pg配置
type FakePgConfig struct {
	ID         int    `db:"id" json:"id"`
	PlatformId int    `db:"platform_id" json:"platform_id"`
	PgId       string `db:"pg_id" json:"pg_id"`
	FakePgid   string `db:"fake_pgid" json:"fake_pgid"`
	PgName     string `db:"pg_name" json:"pg_name"`
	Status     int    `db:"status" json:"status"`
}

// 假pp配置参数
type FakePpConfigParam struct {
	ID         int    `db:"id" json:"id"`
	PlatformId int    `db:"platform_id" json:"platform_id"`
	PgId       string `db:"pp_id" json:"pp_id"`
	FakePgid   string `db:"fake_ppid" json:"fake_ppid"`
	PgName     string `db:"pp_name" json:"pp_name"`
	Status     int    `db:"status" json:"status"`
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
}

// 假pp配置响应
type FakePpConfigRetData struct {
	T int            `cbor:"t" json:"total"`
	D []FakePpConfig `cbor:"d" json:"d"`
}

// 假pp配置
type FakePpConfig struct {
	ID         int    `db:"id" json:"id"`
	PlatformId int    `db:"platform_id" json:"platform_id"`
	PgId       string `db:"pp_id" json:"pp_id"`
	FakePgid   string `db:"fake_ppid" json:"fake_ppid"`
	PgName     string `db:"pp_name" json:"pp_name"`
	Status     int    `db:"status" json:"status"`
}

// 假pg线路配置响应
type FakePgConfigRouteRetData struct {
	T int                 `cbor:"t" json:"total"`
	D []FakePgRouteConfig `cbor:"d" json:"d"`
}

// 假pg线路配置
type FakePgRouteConfig struct {
	ID         int     `db:"id" json:"id"`
	PlatformId int     `db:"platform_id" json:"platform_id"`
	Name       string  `db:"name" json:"name"`
	Fee        float64 `db:"fee" json:"fee"`
	Priority   int     `db:"priority" json:"priority"`
	Status     int     `db:"status" json:"status"`
	Test       int     `db:"test" json:"test"`
}

// 假pp线路配置响应
type FakePpConfigRouteRetData struct {
	T int                 `cbor:"t" json:"total"`
	D []FakePpRouteConfig `cbor:"d" json:"d"`
}

// 假pp线路配置
type FakePpRouteConfig struct {
	ID         int     `db:"id" json:"id"`
	PlatformId int     `db:"platform_id" json:"platform_id"`
	Name       string  `db:"name" json:"name"`
	Fee        float64 `db:"fee" json:"fee"`
	Priority   int     `db:"priority" json:"priority"`
	Status     int     `db:"status" json:"status"`
	Test       int     `db:"test" json:"test"`
}

// 假pg调控配置
type FakePgCtrlConfigParam struct {
	ID              int     `db:"id" json:"id"`
	TotalWin        float64 `db:"TotalWin" json:"TotalWin"`
	EntryFakePGRate int     `db:"EntryFakePGRate" json:"EntryFakePGRate"`
	Page            int     `json:"page"`
	PageSize        int     `json:"page_size"`
}

type FakePgCtrlConfig struct {
	ID              int     `db:"id" json:"id"`
	TotalWin        float64 `db:"TotalWin" json:"TotalWin"`
	EntryFakePGRate int     `db:"EntryFakePGRate" json:"EntryFakePGRate"`
}

// 假pg配置响应
type FakePgCtrlResData struct {
	T int                     `cbor:"t" json:"total"`
	D []FakePgCtrlConfigParam `cbor:"d" json:"d"`
}

// 抽税配置响应
type ThirdTaxRetData struct {
	T int            `cbor:"t" json:"total"`
	D []ThirdTaxList `cbor:"d" json:"d"`
}

// 抽税配置
type ThirdTaxList struct {
	PlatformId   int     `db:"platformId" json:"platformId"`
	TaxSwitch    int     `db:"taxSwitch" json:"taxSwitch"`
	TaxRate      float64 `db:"taxRate" json:"taxRate"`
	PlatformName string  `db:"platform_name" json:"platform_name"`
}
type ThirdTax struct {
	PlatformId int     `db:"platformId" json:"platformId"`
	TaxSwitch  int     `db:"taxSwitch" json:"taxSwitch"`
	TaxRate    float64 `db:"taxRate" json:"taxRate"`
}

// 打码配置
type FlowConfig struct {
	Id           int     `db:"id" json:"id"`
	Name         string  `db:"name" json:"name"`
	Ty           int     `db:"ty" json:"ty"`
	FlowMultiple float64 `db:"flow_multiple" json:"flow_multiple"`
}

type BackgroundLogRetData struct {
	T int             `cbor:"t" json:"total"`
	D []BackgroundLog `cbor:"d" json:"d"`
}

type BackgroundLog struct {
	Id      int    `json:"id" db:"id"`
	Type    int    `json:"type" db:"type"`
	Name    string `json:"name" db:"name"`
	Url     string `json:"url" db:"url"`
	Param   string `json:"param" db:"param"`
	OptId   int    `json:"opt_id" db:"opt_id"`
	OptName string `json:"opt_name" db:"opt_name"`
	Ip      string `json:"ip" db:"ip"`
	Date    string `json:"date" db:"date"`
}

// 后台日志查询参数
type BackgroundLogParam struct {
	Type      int    `json:"type" db:"type"`
	Name      string `json:"name" db:"name"`
	Param     string `json:"param" db:"param"`
	OptId     string `json:"opt_id" db:"opt_id"`
	Ip        string `json:"ip" db:"ip"`
	StartTime string `json:"start_time"` // 查询开始时间
	EndTime   string `json:"end_time"`   // 查询结束时间
	Page      int    `json:"page"`
	PageSize  int    `json:"page_size"`
	OderBY    string `json:"order_by"`
	OderType  string `json:"order_type"`
}

// 上下分查询参数
type Adjustparam struct {
	Uid        string `json:"uid" db:"uid"`
	State      string `json:"state" db:"state"`
	AdjustMode string `json:"adjust_mode" db:"adjust_mode"`
	StartTime  string `json:"start_time"`                   // 查询开始时间
	EndTime    string `json:"end_time"`                     // 查询结束时间
	BusinessId string `json:"business_id" db:"business_id"` // 业务员id
	OperatorId string `json:"operator_id" db:"operator_id"` // 渠道id
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
	OderBY     string `json:"order_by"`
	OderType   string `json:"order_type"`
	IsOperator int    `json:"is_operator"` //是否渠道列表
}
type TblReportGameDaily struct {
	Id          int     `json:"id" db:"id"`
	PlatformId  string  `json:"platform_id" db:"platform_id"`   //游戏ID
	BusinessId  string  `json:"business_id" db:"business_id"`   // 业务员id
	OperatorId  string  `json:"operator_id" db:"operator_id"`   // 渠道id
	Running     float64 `json:"running" db:"running"`           // 流水
	GameWinlost float64 `json:"game_winlost" db:"game_winlost"` // 游戏赢亏
	GameRound   int     `json:"game_round" db:"game_round"`     // 游戏局数
	GameTax     float64 `json:"game_tax" db:"game_tax"`         // 游戏税收
	CreatedAt   string  `json:"created_at" db:"created_at"`     // 时间
}

type RedPackCfgItem struct {
	Id                int     `json:"id" cbor:"id" db:"id"`
	BeginDay          string  `json:"begin_day" cbor:"begin_day" db:"begin_day"`
	EndDay            string  `json:"end_day" cbor:"end_day" db:"end_day"`
	DailyBeginHour    int     `json:"daily_begin_hour" cbor:"daily_begin_hour" db:"daily_begin_hour"`
	DailyEndHour      int     `json:"daily_end_hour" cbor:"daily_end_hour" db:"daily_end_hour"`
	RedPackNum        int     `json:"redpack_num" cbor:"redpack_num" db:"redpack_num"`
	RedpackTotalMoney int     `json:"redpack_total_money" cbor:"redpack_total_money" db:"redpack_total_money"`
	CheckType         int     `json:"check_type" cbor:"check_type" db:"check_type"`
	GetMaxCount       int     `json:"get_max_count" cbor:"get_max_count" db:"get_max_count"`
	ActivityId        int     `json:"activity_id" cbor:"activity_id" db:"activity_id"`
	DailyGetOne       int     `json:"daily_get_one" cbor:"daily_get_one" db:"daily_get_one"`
	Onoff             int     `json:"on_off" cbor:"on_off" db:"on_off"`
	MoneyMin          float64 `json:"money_min" cbor:"money_min" db:"money_min"`
	MoneyMax          float64 `json:"money_max" cbor:"money_max" db:"money_max"`
}

// 红包雨配置
type RedPackConfigParam struct {
	Uid        int    `json:"uid"`
	ActivityId int    `json:"activity_id"`
	GetType    int    `json:"type"`
	OperatorId int    `json:"operator_id"`
	Mobile     string `json:"mobile"`
	StartTime  string `json:"start_time"`
	EndTime    string `json:"end_time"`
	MinAmt     int    `json:"min_amt"`
	MaxAmt     int    `json:"max_amt"`
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
	OrderBy    string `json:"orderby"`
	OrderType  string `json:"ordertype"` // 查询开始时间
}

type RedPackReceiveItem struct {
	Id           int     `json:"id" cbor:"id" db:"id"`
	Uid          int     `json:"uid" cbor:"uid" db:"uid"`
	Amount       float64 `json:"amount" cbor:"amount" db:"amount"`
	BeforeAmount float64 `json:"before_amount" cbor:"before_amount" db:"before_amount"`
	AfterAmount  float64 `json:"after_amount" cbor:"after_amount" db:"after_amount"`
	ActivityId   int     `json:"activity_id" cbor:"activity_id" db:"activity_id"`
	CreatedAt    int     `json:"created_at" cbor:"created_at" db:"created_at"`
}

type ChangeParentParam struct {
	Uid              int    `json:"uid" db:"uid"`
	ParentId         int    `json:"parent_id" db:"parent_id"`
	OperatorId       string `json:"operator_id" db:"operator_id"`
	BusinessId       string `json:"business_id" db:"business_id"`
	BeforeParentId   string `json:"before_parent_id" db:"before_parent_id"`
	BeforeOperatorId string `json:"before_operator_id" db:"before_operator_id"`
	BeforeBusinessId string `json:"before_business_id" db:"before_business_id"`
}

type BlackBankCardParam struct {
	Id       int    `json:"id"`
	PixId    string `json:"pix_id"`
	Flag     string `json:"flag"`
	Page     int    `json:"page"`
	PageSize int    `json:"page_size"`
}
type BlackBankCard struct {
	Id    int    `json:"id" db:"id"`
	PixId string `json:"pix_id" db:"pix_id"`
	Flag  string `json:"flag" db:"flag"`
}

type BlackBankCardRetData struct {
	T int             `cbor:"t" json:"total"`
	D []BlackBankCard `cbor:"d" json:"d"`
}

type BlackEmailParam struct {
	Id          int    `json:"id"`
	EmailSuffix string `json:"email_suffix"`
	State       string `json:"state"`
	Page        int    `json:"page"`
	PageSize    int    `json:"page_size"`
}
type BlackEmail struct {
	Id          int    `json:"id" db:"id"`
	EmailSuffix string `json:"email_suffix" db:"email_suffix"`
	State       string `json:"state" db:"state"`
}

type BlackEmailRetData struct {
	T int          `cbor:"t" json:"total"`
	D []BlackEmail `cbor:"d" json:"d"`
}

// 充值分成参数
type PiggyBankParam struct {
	Id        int    `json:"id"`
	Uid       string `json:"uid"`
	StartTime string `json:"start_time"` // 查询开始时间
	EndTime   string `json:"end_time"`   // 查询结束时间
	Page      int    `json:"page"`
	PageSize  int    `json:"page_size"`
	OderBY    string `json:"order_by"`
	OderType  string `json:"order_type"`
}

// 充值分成 响应数据
type PiggyBankRetData struct {
	T int             `cbor:"t" json:"total"`
	D []PiggyBankData `cbor:"d" json:"d"`
	S PiggyBankData   `cbor:"s" json:"s"`
}

// 充值分成
type PiggyBankData struct {
	Id            int     `json:"id" db:"id"`
	Uid           string  `json:"uid" db:"uid"`
	Amount        float64 `json:"amount" db:"amount"`
	Interest      float64 `db:"interest" json:"interest"`
	TotalInterest float64 `json:"total_interest" db:"total_interest"`
}
